use -v to test if var is set and printf
This commit is contained in:
parent
0fb43271be
commit
561551ba53
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
set -o errtrace
|
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 argv0="snap-pac"
|
||||||
readonly SNAPPAC_CONFIG_FILE=/etc/snap-pac.conf
|
readonly SNAPPAC_CONFIG_FILE=/etc/snap-pac.conf
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue