Permalink
Browse files

remove quotes, add exit on cancel. fixes #1

  • Loading branch information...
1 parent 1772019 commit ede46d4e6327dcacc1a84015ccf71695de4f91e4 @pbrisbin committed Dec 8, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 wifi-pipe
View
@@ -84,7 +84,9 @@ connect() {
# ask for the security key if needed
if [[ "$security" != 'none' ]]; then
- key="$(zenity --entry --title="Authentication" --text="Please enter $security key for $essid" --hide-text)"
+ if ! key=$(zenity --entry --title="Authentication" --text="Please enter $security key for $essid" --hide-text); then
+ exit 1 # user cancelled.
+ fi
fi
# create the new profile

0 comments on commit ede46d4

Please sign in to comment.