Skip to content

Commit

Permalink
Fixed tiny but fatal error (-z => -n in IP address check)
Browse files Browse the repository at this point in the history
  • Loading branch information
jawj authored Jul 7, 2017
1 parent c81a1a9 commit 6fa14c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo "** Note: hostname must resolve to this machine already, to enable Let's En
read -p "Hostname for VPN (e.g. vpn.example.com): " VPNHOST

VPNHOSTIP=$(dig -4 +short "$VPNHOST")
[[ -z "$VPNHOSTIP" ]] || exit_badly "Cannot resolve VPN hostname, aborting"
[[ -n "$VPNHOSTIP" ]] || exit_badly "Cannot resolve VPN hostname, aborting"

read -p "VPN username: " VPNUSERNAME
while true; do
Expand Down

0 comments on commit 6fa14c2

Please sign in to comment.