diff options
-rw-r--r-- | setup-alpine.in | 5 |
1 files changed, 4 insertions, 1 deletions
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" |