diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-11-23 20:08:52 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-11-23 20:08:52 +0200 |
commit | b424bfe37b33038d372153ea85973295d10439a2 (patch) | |
tree | 3543cb72572753694f1972d52dc28ede83562eaa /contrib/pkg_install | |
parent | 29baa6b72050cc7ed81abe700909c1a1fbe44f69 (diff) | |
download | bash-completion-b424bfe37b33038d372153ea85973295d10439a2.tar.gz |
Use [[ ]] when appropriate per current style guidelines.
Diffstat (limited to 'contrib/pkg_install')
-rw-r--r-- | contrib/pkg_install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pkg_install b/contrib/pkg_install index 443a9ac1..562596cd 100644 --- a/contrib/pkg_install +++ b/contrib/pkg_install @@ -11,7 +11,7 @@ _pkg_delete() cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} - [ "$prev" = "-o" -o "$prev" = "-p" -o "$prev" = "-W" ] && return 0 + [[ "$prev" == -o || "$prev" == -p || "$prev" == -W ]] && return 0 COMPREPLY=( $( compgen -d "$pkgdir$cur" ) ) COMPREPLY=( ${COMPREPLY[@]#$pkgdir} ) |