Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove quotes, add exit on cancel. fixes #1

  • Loading branch information...
commit ede46d4e6327dcacc1a84015ccf71695de4f91e4 1 parent 1772019
@pbrisbin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 wifi-pipe
View
4 wifi-pipe
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.