From 5ab9a4cb05a53c23371ce5e593d3e7aac2584fc4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Mar 2018 23:12:14 +0000 Subject: [PATCH] Disable quotes --- src/freedombone-tests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-tests b/src/freedombone-tests index 31e9fcd8..3a2383c7 100755 --- a/src/freedombone-tests +++ b/src/freedombone-tests @@ -135,8 +135,10 @@ function test_unique_onion_ports { # test that some services are not assigned the same onion port FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*" - ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}') - unique_ports=$(grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq) + # shellcheck disable=SC2086 + ports=$(grep -r "_ONION_PORT=" $FILES | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}') + # shellcheck disable=SC2086 + unique_ports=$(grep -r "_ONION_PORT=" $FILES | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}' | uniq) if [[ "$ports" != "$unique_ports" ]]; then echo $'Some onion ports are clashing' grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq