Skip to content

Commit

Permalink
Fix jq parsing if city not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyaz committed Jun 27, 2020
1 parent 396788b commit 7d6ccea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvpnmgr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ getRecommendedServers(){
curlstring="$curlstring&filters\[country_id\]=$3"
fi
curlstring="$curlstring&limit=1"
/usr/sbin/curl -fsL --retry 3 "$curlstring" | jq -r
/usr/sbin/curl -fsL --retry 3 "$curlstring" | jq -r -e '.[] // empty'
}

getServersforCity(){
Expand Down

0 comments on commit 7d6ccea

Please sign in to comment.