summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xanykernel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/anykernel.sh b/anykernel.sh
index 1257283..6fff248 100755
--- a/anykernel.sh
+++ b/anykernel.sh
@@ -194,7 +194,7 @@ patch_fstab() {
options) part=$(echo "$entry" | awk '{ print $4 }');;
flags) part=$(echo "$entry" | awk '{ print $5 }');;
esac;
- newentry=${entry//$part/$6};
+ newentry=$(echo "$entry" | sed "s;${part};${6};");
sed -i "s;${entry};${newentry};" $1;
fi;
}