From a2f57c5f5ef8d702359a0ed3b8b9e019b70dd482 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sat, 18 May 2013 16:29:05 +0200 Subject: Rewording some lines regarding exit codes --- src/wifi-menu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/wifi-menu') 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 -- cgit v1.2.3-24-g4f1b