AK2: fix patch_fstab for block, mount & flags

- shell replacement was too weak and caused mangled output
This commit is contained in:
osm0sis committed 2016-01-24 13:32:11 -04:00
1 parent c79016cd39
commit a3cacd662e
1 file changed
+1 -1
+1 -1
View File
@@ -194,7 +194,7 @@ patch_fstab() {
options) part=$(echo "$entry" | awk '{ print $4 }');; options) part=$(echo "$entry" | awk '{ print $4 }');;
flags) part=$(echo "$entry" | awk '{ print $5 }');; flags) part=$(echo "$entry" | awk '{ print $5 }');;
esac; esac;
newentry=${entry//$part/$6}; newentry=$(echo "$entry" | sed "s;${part};${6};");
sed -i "s;${entry};${newentry};" $1; sed -i "s;${entry};${newentry};" $1;
fi; fi;
} }