Skip to content

Commit d815b46

Browse files
author
Richard Alpe
committed
tipc: use double brackets in if conditions
1 parent e1b535e commit d815b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/tipc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _tipc_bearer() {
2323
fi
2424

2525
for ((i = 0; i < $cword; i++)); do
26-
if [ ${words[$i]} == 'media' ]; then
26+
if [[ ${words[$i]} == 'media' ]]; then
2727
media=${words[$(($i + 1))]}
2828
fi
2929
done
@@ -102,7 +102,7 @@ _tipc()
102102
fi
103103

104104
for ((i = 0; i < $cword; i++)); do
105-
if [ ${words[$i]} == 'media' ]; then
105+
if [[ ${words[$i]} == 'media' ]]; then
106106
media=${words[$(($i + 1))]}
107107
fi
108108
done

0 commit comments

Comments
 (0)