summaryrefslogtreecommitdiffstats
path: root/src/wifi-menu
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-05-18 16:29:05 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2013-05-18 16:29:05 +0200
commita2f57c5f5ef8d702359a0ed3b8b9e019b70dd482 (patch)
tree0c53430da43b2313150e38c9a83a10d87237b916 /src/wifi-menu
parentc2b31233b0f33e9171080bc9eb84b15f2648d258 (diff)
downloadnetctl-a2f57c5f5ef8d702359a0ed3b8b9e019b70dd482.tar.gz
netctl-a2f57c5f5ef8d702359a0ed3b8b9e019b70dd482.tar.xz
Rewording some lines regarding exit codes
Diffstat (limited to 'src/wifi-menu')
-rwxr-xr-xsrc/wifi-menu4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wifi-menu b/src/wifi-menu
index a30d15c..d0903aa 100755
--- a/src/wifi-menu
+++ b/src/wifi-menu
@@ -140,9 +140,7 @@ connect_to_ssid()
local msg
PROFILE=$(ssid_to_profile "$1")
if [[ $? -ne 0 ]]; then
- PROFILE=$(create_profile "$1")
- RETURN=$?
- (( RETURN == 0 )) || return $RETURN
+ PROFILE=$(create_profile "$1") || return $?
NEW_PROFILE=1
fi
clear