浏览代码

Debugging echoes

Bob Mottram 8 年前
父节点
当前提交
dd6b3b5d94
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      src/freedombone-utils-selector

+ 6
- 1
src/freedombone-utils-selector 查看文件

390
         app_index=0
390
         app_index=0
391
         for a in "${APPS_AVAILABLE[@]}"
391
         for a in "${APPS_AVAILABLE[@]}"
392
         do
392
         do
393
+            echo -n "${a}"
393
             if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
394
             if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
395
+                echo -n $" not installed"
394
                 if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
396
                 if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
397
+                    echo -n $" chosen"
395
                     # interactively obtain settings for this app
398
                     # interactively obtain settings for this app
396
                     if [[ $(function_exists install_interactive_${a}) == "1" ]]; then
399
                     if [[ $(function_exists install_interactive_${a}) == "1" ]]; then
397
-                        echo $"Interactive settings for ${a}"
400
+                        echo -n $" interactive"
398
                         install_interactive_${a}
401
                         install_interactive_${a}
399
                     fi
402
                     fi
400
                 fi
403
                 fi
401
             fi
404
             fi
405
+            echo ""
406
+
402
             app_index=$[app_index+1]
407
             app_index=$[app_index+1]
403
         done
408
         done
404
         echo $"Interactive settings complete"
409
         echo $"Interactive settings complete"