Changeset - 92bd9d187370
[Not reviewed]
0 1 0
Branko Majic (branko) - 3 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)
templates/TEMPLATE.sh.tpl
Show inline comments
 
@@ -131,7 +131,7 @@ 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
0 comments (0 inline, 0 general)