fix: set default value
All checks were successful
ci / docker (push) Successful in 24s

This commit is contained in:
Tine Jozelj 2023-07-18 15:53:34 +02:00
parent ae1afb952f
commit 2090f83dac
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -16,7 +16,7 @@ die() {
exit 1 exit 1
} }
test -f "$DIGITALOCEAN_TOKEN_FILE" && DIGITALOCEAN_TOKEN="$(cat $DIGITALOCEAN_TOKEN_FILE)" test -f "${DIGITALOCEAN_TOKEN_FILE:-}" && DIGITALOCEAN_TOKEN="$(cat $DIGITALOCEAN_TOKEN_FILE)"
test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!" test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!"
test -z $DOMAIN && die "DOMAIN not set!" test -z $DOMAIN && die "DOMAIN not set!"
test -z $NAME && die "NAME not set!" test -z $NAME && die "NAME not set!"