AK2: fix patch_fstab for block, mount & flags
- shell replacement was too weak and caused mangled output
This commit is contained in:
1 parent
c79016cd39
commit
a3cacd662e
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user