浏览代码

Disable quotes

Bob Mottram 7 年前
父节点
当前提交
5ab9a4cb05
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      src/freedombone-tests

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

135
 
135
 
136
     # test that some services are not assigned the same onion port
136
     # test that some services are not assigned the same onion port
137
     FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
137
     FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
138
-    ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}')
139
-    unique_ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq)
138
+    # shellcheck disable=SC2086
139
+    ports=$(grep -r "_ONION_PORT=" $FILES | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}')
140
+    # shellcheck disable=SC2086
141
+    unique_ports=$(grep -r "_ONION_PORT=" $FILES | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq)
140
     if [[ "$ports" != "$unique_ports" ]]; then
142
     if [[ "$ports" != "$unique_ports" ]]; then
141
         echo $'Some onion ports are clashing'
143
         echo $'Some onion ports are clashing'
142
         grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq
144
         grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq