lots: shellcheck, streaming stuff, fixes
[distro-setup] / btrbk-run
index 1ca6f57ab2d4092e0b98862caa0f6380113046ab..75a6f26f727a43dc2a3e66b25751de8ed90cbe68 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -489,13 +489,14 @@ if $verbose; then
   if [[ $cmd_arg != run ]]; then
     opts_show+=(cmd_arg=$cmd_arg)
   fi
-  if (( $opts_show >= 1 )); then
+  if (( ${#opts_show[@]} >= 1 )); then
     first=true
     for opt in ${opts_show[@]}; do
       if $first; then
         printf "%s" "$opt"
       else
         printf " %s" "$opt"
+      fi
     done
     echo
   fi