summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ak2-core.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh
index c89b488..b7a8a7d 100755
--- a/tools/ak2-core.sh
+++ b/tools/ak2-core.sh
@@ -357,7 +357,7 @@ replace_file() {
# patch_fstab <fstab file> <mount match name> <fs match type> <block|mount|fstype|options|flags> <original string> <replacement string>
patch_fstab() {
entry=$(grep "$2" $1 | grep "$3");
- if [ -z "$(echo "$entry" | grep "$6")" ]; then
+ if [ -z "$(echo "$entry" | grep "$6")" ] || [ -z $6 ]; then
case $4 in
block) part=$(echo "$entry" | awk '{ print $1 }');;
mount) part=$(echo "$entry" | awk '{ print $2 }');;