瀏覽代碼

Install shellcheck if needed

Bob Mottram 7 年之前
父節點
當前提交
087115fa23
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      src/freedombone-tests

+ 4
- 0
src/freedombone-tests 查看文件

@@ -66,6 +66,10 @@ function test_app_function_type {
66 66
 }
67 67
 
68 68
 function test_static_analysis {
69
+    if [ ! -f /usr/bin/shellcheck ]; then
70
+        apt-get -yq install shellcheck
71
+    fi
72
+
69 73
     FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
70 74
 
71 75
     for filename in $FILES