satisfy shellcheck
[log-quiet] / logq-function
index a18319f680a598d63df02db2c435d22a18b2487b..3744d101ffeab7e34cff643396d8377ded56175c 100644 (file)
@@ -53,11 +53,12 @@ $help"
   printf "%s\n%s\n\n" "Log of $prettycommand" "$(date)" >"$file"
 
   if [[ $- != *x* ]]; then
-    echo "log $file = $@"
+    echo "log $file = $*"
   fi
 
   # we will propagate any errors
-  local logq_ret=$(
+  local logq_ret
+  logq_ret=$(
     set +e
     trap ERR
     "$@" &>> "$file"