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/netctl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/netctl.in') 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 } -- cgit v1.2.3-24-g4f1b