summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilhelm <willat8@gmail.com>2023-01-01 10:21:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2023-01-25 14:43:33 +0000
commite3a6f3f0115ab533558dd69d8cfa2b194f8403e8 (patch)
treee3147d9ea7f6a0d396be48781d9f94e08ddf83f1
parent23400c7cfb0895c01aab0e927fac54b3266b809f (diff)
downloadalpine-conf-e3a6f3f0115ab533558dd69d8cfa2b194f8403e8.zip
setup-alpine: USEANSWERFILE empty case fix
-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