diff options
author | osm0sis <osm0sis@outlook.com> | 2016-01-17 09:12:44 -0400 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2016-01-24 13:32:11 -0400 |
commit | a3cacd662e290a41118e763dd262ed49b2dc6322 (patch) | |
tree | c0b786c7169f89e0fa1a0f74d1d551711f0f3874 | |
parent | c79016cd39b772a05e39ed5d0b52c4b942e46914 (diff) |
AK2: fix patch_fstab for block, mount & flags
- shell replacement was too weak and caused mangled output
-rwxr-xr-x | anykernel.sh | 2 |
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; } |