Added check for "unset" variables
1 unresolved thread
1 unresolved thread
/cc @netomi
Merge request reports
Activity
Filter activity
1 1 #!/usr/bin/env bash 2 set -eo pipefail 2 set -euo pipefail Solution is to use the shell parameter expansion in this case:
if [ -z "${REPO:-}" ] || [ -z "${VERSION:-}" ] || [ -z "${ARTIFACT:-}" ]; then usage fi
Please register or sign in to reply