mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-08 05:03:46 -05:00
_varIsEmpty_: allow passing empty variables when using set nounset
This commit is contained in:
@@ -343,7 +343,7 @@ _varIsEmpty_() {
|
||||
# USAGE
|
||||
# _varIsEmpty_ "${var}"
|
||||
|
||||
[[ -z ${1} || ${1} == "null" ]] && return 0 || return 1
|
||||
[[ -z ${1:-} || ${1:-} == "null" ]] && return 0 || return 1
|
||||
}
|
||||
|
||||
_isIPv6_() {
|
||||
|
||||
Reference in New Issue
Block a user