summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2016-01-17 09:12:44 -0400
committerosm0sis <osm0sis@outlook.com>2016-01-24 13:32:11 -0400
commita3cacd662e290a41118e763dd262ed49b2dc6322 (patch)
treec0b786c7169f89e0fa1a0f74d1d551711f0f3874
parentc79016cd39b772a05e39ed5d0b52c4b942e46914 (diff)
AK2: fix patch_fstab for block, mount & flags
- shell replacement was too weak and caused mangled output
-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;
}