use -v to test if var is set and printf

This commit is contained in:
James Barnett 2018-02-06 21:19:14 -05:00
parent 0fb43271be
commit 561551ba53
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -20,7 +20,7 @@
set -o errtrace
[[ -n "$SNAP_PAC_SKIP" ]] && { echo "snap-pac: skipping..."; exit 0; }
[[ -v SNAP_PAC_SKIP ]] && { printf "==> skipping due to SNAP_PAC_SKIP being set"; exit 0; }
readonly argv0="snap-pac"
readonly SNAPPAC_CONFIG_FILE=/etc/snap-pac.conf