mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 14:13:45 -05:00
use -eq
This commit is contained in:
@@ -81,7 +81,7 @@ function header() { local _message="========== ${@} ========== "; echo "$(_
|
|||||||
|
|
||||||
# Log messages when verbose is set to "1"
|
# Log messages when verbose is set to "1"
|
||||||
verbose() {
|
verbose() {
|
||||||
if [ "${verbose}" == "1" ]; then
|
if [ "${verbose}" -eq "1" ]; then
|
||||||
debug "$@"
|
debug "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user