Bob Mottram vor 7 Jahren
Ursprung
Commit
5ab9a4cb05
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4
    2
      src/freedombone-tests

+ 4
- 2
src/freedombone-tests Datei anzeigen

@@ -135,8 +135,10 @@ function test_unique_onion_ports {
135 135
 
136 136
     # test that some services are not assigned the same onion port
137 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 142
     if [[ "$ports" != "$unique_ports" ]]; then
141 143
         echo $'Some onion ports are clashing'
142 144
         grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq