Changeset - 92bd9d187370
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2021-03-02 18:47:28
branko@majic.rs
Noticket: [TEMPLATE.sh.tpl] Make sure to default the value for $1 positional argument when checking if it has been passed-in:

- Otherwise the shell script will error-out because the variable is
not defined.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general) First comment
templates/TEMPLATE.sh.tpl
Show inline comments
 
@@ -128,13 +128,13 @@ ERROR_ARGUMENTS=1
 

	
 
# Disable debug and quiet modes by default.
 
debug=0
 
quiet=0
 

	
 
# If no arguments were given, just show usage help.
 
if [[ -z \$1 ]]; then
 
if [[ -z \${1-} ]]; then
 
    usage
 
    exit "$SUCCESS"
 
fi
 

	
 
# Parse the arguments
 
while getopts "qdvh" opt; do
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now