summaryrefslogtreecommitdiff
path: root/completions/_mock
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_mock')
-rw-r--r--completions/_mock2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/_mock b/completions/_mock
index cb7d6571..020b39b4 100644
--- a/completions/_mock
+++ b/completions/_mock
@@ -12,7 +12,7 @@ _mock()
local cfgdir=/etc/mock count=0 i
for i in "${words[@]}" ; do
- [ $count -eq $cword ] && break
+ [[ $count -eq $cword ]] && break
if [[ "$i" == --configdir ]] ; then
cfgdir="${words[((count+1))]}"
elif [[ "$i" == --configdir=* ]] ; then