Check Spec: Consider spaces in directory paths
@@ -18,14 +18,14 @@ if is_plugin_available dump && is_plugin_available list && is_plugin_available s
succeed_if "could not mount root: $ROOT_FILE at $ROOT_MOUNTPOINT"
SYSTEM_FILE="$("$KDB" file -n system$ROOT_MOUNTPOINT)"
- [ ! -f $SYSTEM_FILE ]
+ [ ! -f "$SYSTEM_FILE" ]
exit_if_fail "System File $SYSTEM_FILE already exists"
"$KDB" mount $ROOT_FILE spec$ROOT_MOUNTPOINT dump 1> /dev/null
succeed_if "could not mount spec root: $ROOT_FILE at spec$ROOT_MOUNTPOINT"
SPEC_FILE="$("$KDB" file -n spec$ROOT_MOUNTPOINT)"
- [ ! -f $SPEC_FILE ]
+ [ ! -f "$SPEC_FILE" ]
exit_if_fail "Spec File $SPEC_FILE already exists"
"$KDB" get $ROOT_MOUNTPOINT
@@ -51,8 +51,8 @@ if is_plugin_available dump && is_plugin_available list && is_plugin_available s
"$KDB" umount spec$ROOT_MOUNTPOINT
succeed_if "could not unmount previously mounted spec mountpoint"
- rm -f $SYSTEM_FILE
- rm -f $SPEC_FILE
+ rm -f "$SYSTEM_FILE"
+ rm -f "$SPEC_FILE"
fi
echo "Test mounting plugin stack"
