mirror of
https://github.com/triffid/pia-wg.git
synced 2026-03-31 06:23:55 -04:00
Fix LOC print
Incorrect pipe position was causing jq error instead of printing locations
This commit is contained in:
@@ -207,7 +207,7 @@ then
|
||||
(
|
||||
echo "${BOLD}Location${TAB}Region${TAB}Port Forward${TAB}Geolocated${NORMAL}"
|
||||
echo "----------------${TAB}------------------${TAB}------------${TAB}----------"
|
||||
jq -r '.regions | .[] | '${PORTFORWARD:+'| select(.port_forward)'}' [.id, .name, .port_forward, .geo] | "'$'\e''[1m\(.[0])'$'\e''[0m\t\(.[1])\t\(.[2])\t\(.[3])"' "$DATAFILE_NEW" | sort
|
||||
jq -r '.regions | .[] | '${PORTFORWARD:+'select(.port_forward) |'}' [.id, .name, .port_forward, .geo] | "'$'\e''[1m\(.[0])'$'\e''[0m\t\(.[1])\t\(.[2])\t\(.[3])"' "$DATAFILE_NEW" | sort
|
||||
) | column -t -s "${TAB}"
|
||||
echo "${PORTFORWARD:+'Note: only port-forwarding regions displayed'}"
|
||||
echo "Please edit $CONFIG and change your desired location, then try again"
|
||||
|
||||
Reference in New Issue
Block a user