FIX: Make sure we're checking against a string.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 4 Aug 2016 10:09:56 +0000 (18:09 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Thu, 4 Aug 2016 10:09:56 +0000 (18:09 +0800)
launcher

index 50268d753d96be803f55076ea61e1ef90a05aa7e..be0b0f4cee4095bc177c3931ec5d048efdd05728 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -250,7 +250,7 @@ find_templates() {
 
     local arrTemplates=${templates// / }
 
-    if [ ! -z $templates ]; then
+    if [ ! -z "$templates" ]; then
       for template in "${arrTemplates[@]}"
       do
         local nested_templates=$(find_templates $template)