Skip to content

Commit 811ff3b

Browse files
committed
AK2: fix patch_fstab for block, mount & flags
- shell replacement was too weak and caused mangled output
1 parent 19b056b commit 811ff3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anykernel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ patch_fstab() {
194194
options) part=$(echo "$entry" | awk '{ print $4 }');;
195195
flags) part=$(echo "$entry" | awk '{ print $5 }');;
196196
esac;
197-
newentry=${entry//$part/$6};
197+
newentry=$(echo "$entry" | sed "s;${part};${6};");
198198
sed -i "s;${entry};${newentry};" $1;
199199
fi;
200200
}

0 commit comments

Comments
 (0)