Disable quotes
This commit is contained in:
parent
a4086b9e79
commit
5ab9a4cb05
|
@ -135,8 +135,10 @@ function test_unique_onion_ports {
|
||||||
|
|
||||||
# test that some services are not assigned the same onion port
|
# test that some services are not assigned the same onion port
|
||||||
FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
|
FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
|
||||||
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)
|
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
|
if [[ "$ports" != "$unique_ports" ]]; then
|
||||||
echo $'Some onion ports are clashing'
|
echo $'Some onion ports are clashing'
|
||||||
grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq
|
grep -r "_ONION_PORT=" "$FILES" | awk -F ':' '{print $2}' | uniq
|
||||||
|
|
Loading…
Reference in New Issue