diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2022-11-05 23:41:53 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2022-11-05 23:45:01 +0100 |
commit | 3114f2ed9b1cffe25a0d48d8ee8b64445e1688f4 (patch) | |
tree | 7880a289c484352971fcc1d5a9619f70cdd7ed48 /setup-alpine.in | |
parent | d7ae66f869e50066dd7dd4297e175b744535cb32 (diff) | |
download | alpine-conf-3114f2ed9b1cffe25a0d48d8ee8b64445e1688f4.zip |
setup-alpine: fix error when -f <file> doesn't contain a slash
When running tests with /bin/sh -> /usr/bin/yash:
===> tests/setup_alpine_test:setup_alpine_create_answerfile
Executing command [ setup-alpine -f answers ]
Fail: incorrect exit status: 1, expected: 0
stdout:
stderr:
.: file `answers' was not found in $PATH
https://pubs.opengroup.org/onlinepubs/009695299/utilities/dot.html:
> If file does not contain a slash, the shell shall use the search
> path specified by PATH to find the directory containing file.
Diffstat (limited to 'setup-alpine.in')
-rw-r--r-- | setup-alpine.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index 952d7da..2f4e13a 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="$OPTARG";; + f) USEANSWERFILE=$(realpath "$OPTARG");; c) CREATEANSWERFILE="$OPTARG";; e) empty_root_password=1;; h) usage 0;; |