fix: always fetch when image is set

This commit is contained in:
Job 2024-12-13 20:22:11 +01:00
parent 2d7807ea60
commit 50fc142407
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U

View File

@ -49,7 +49,7 @@ fetch=false
while test $# -gt 0; do while test $# -gt 0; do
case "$1" in case "$1" in
--image | -i) shift && image="$1" ;; --image | -i) shift && fetch=true && image="$1" ;;
--fetch | -f) fetch=true ;; --fetch | -f) fetch=true ;;
-*) log "unknown argument '$1'" 'x' 31 ;; -*) log "unknown argument '$1'" 'x' 31 ;;
*) name="$1" ;; *) name="$1" ;;