summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup-alpine.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index cf50b43..f21b966 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -68,7 +68,7 @@ case "$USEANSWERFILE" in
USEANSWERFILE="$temp"
;;
*)
- USEANSWERFILE=$(realpath "$USEANSWERFILE")
+ [ -n "$USEANSWERFILE" ] && USEANSWERFILE=$(realpath "$USEANSWERFILE")
;;
esac
if [ -n "$USEANSWERFILE" ] && [ -e "$USEANSWERFILE" ]; then