diff --git a/vncroulette_setup.sh b/vncroulette_setup.sh index 07b9419..b2c98fa 100644 --- a/vncroulette_setup.sh +++ b/vncroulette_setup.sh @@ -1,5 +1,5 @@ vncroulette() { - host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')" + local host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')" echo "Connecting to ${host}..." vncviewer "${host}" }