summaryrefslogtreecommitdiffstats
path: root/src/netctl.in
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/netctl.in
parentc2b31233b0f33e9171080bc9eb84b15f2648d258 (diff)
downloadnetctl-a2f57c5f5ef8d702359a0ed3b8b9e019b70dd482.tar.gz
netctl-a2f57c5f5ef8d702359a0ed3b8b9e019b70dd482.tar.xz
Rewording some lines regarding exit codes
Diffstat (limited to 'src/netctl.in')
-rw-r--r--src/netctl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netctl.in b/src/netctl.in
index 51ffe02..ed4cea4 100644
--- a/src/netctl.in
+++ b/src/netctl.in
@@ -48,8 +48,8 @@ list() {
local indicators=( '*' ' ' )
list_profiles | while read -r Profile; do
sd_call "is-active --quiet" "$Profile" &> /dev/null
- # Make the return variable boolean
- [[ $? -eq 0 ]]; printf '%s %s\n' "${indicators[$?]}" "$Profile"
+ # Make the return value boolean
+ printf '%s %s\n' "${indicators[!! $?]}" "$Profile"
done
}