X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d1c17b57ec52c6e81c4ac97dfdf49e6cbdc5f766..bc1377ccb13ff82bebc9e33d79d9cf7479d68424:/vim/ultisnips/sh.snippets diff --git a/vim/ultisnips/sh.snippets b/vim/ultisnips/sh.snippets index ff10449..1ea5c21 100644 --- a/vim/ultisnips/sh.snippets +++ b/vim/ultisnips/sh.snippets @@ -26,7 +26,7 @@ function usage () # Parse arguments declare -a args -while [[ $# > 0 ]]; do +while [[ $# -gt 0 ]]; do opt="\$1" case $opt in @@ -36,7 +36,7 @@ while [[ $# > 0 ]]; do echo -e "\n Option does not exist : $opt\n" usage; exit 1 ;; - *) args+=($opt); shift ;; + *) args+=("$opt"); shift ;; esac done endsnippet