From 92bd9d18737020aa2e94ea7f64a54a9314f9c2a0 2021-03-02 18:47:28
From: Branko Majic <branko@majic.rs>
Date: 2021-03-02 18:47:28
Subject: [PATCH] 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.

---

diff --git a/templates/TEMPLATE.sh.tpl b/templates/TEMPLATE.sh.tpl
index c18fb86c02ac1a83c34232933730e1b61ea271b2..4df31c29bc173d2a0dab9b4646346eb258eb075b 100644
--- a/templates/TEMPLATE.sh.tpl
+++ b/templates/TEMPLATE.sh.tpl
@@ -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