mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 06:03:47 -05:00
Fixed fucntion for strict variable checking
This commit is contained in:
@@ -210,7 +210,7 @@ trap trapCleanup INT TERM
|
|||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
# Exit on empty variable
|
# Exit on empty variable
|
||||||
if [ "${strict}"="1" ]; then
|
if [ "${strict}" = "1" ]; then
|
||||||
set -o nounset
|
set -o nounset
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user