From 23400c7cfb0895c01aab0e927fac54b3266b809f Mon Sep 17 00:00:00 2001 From: William Wilhelm Date: Sun, 1 Jan 2023 02:42:53 +0000 Subject: setup-alpine: fix downloading answer file --- setup-alpine.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup-alpine.in b/setup-alpine.in index 856b0de..cf50b43 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -38,7 +38,7 @@ usage() { while getopts "aef:c:hq" opt ; do case $opt in a) ARCHIVE=yes;; - f) USEANSWERFILE=$(realpath "$OPTARG");; + f) USEANSWERFILE="$OPTARG";; c) CREATEANSWERFILE="$OPTARG";; e) empty_root_password=1;; h) usage 0;; @@ -67,6 +67,9 @@ case "$USEANSWERFILE" in wget -qO "$temp" "$USEANSWERFILE" || die "Failed to download '$USEANSWERFILE'" USEANSWERFILE="$temp" ;; + *) + USEANSWERFILE=$(realpath "$USEANSWERFILE") + ;; esac if [ -n "$USEANSWERFILE" ] && [ -e "$USEANSWERFILE" ]; then . "$USEANSWERFILE" -- cgit v1.2.3