diff options
author | William Wilhelm <willat8@gmail.com> | 2023-01-01 02:42:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-25 14:43:33 +0000 |
commit | 23400c7cfb0895c01aab0e927fac54b3266b809f (patch) | |
tree | 1845a0c336fbb9babd27e1ef95045f9634168ad0 | |
parent | 9fb734a44181c285217d1ea5454a7936dbfd30d4 (diff) | |
download | alpine-conf-23400c7cfb0895c01aab0e927fac54b3266b809f.zip |
setup-alpine: fix downloading answer file
-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" |