Fix invalid bash code in auto completion
authorFrederic Massart <fred@moodle.com>
Tue, 17 Nov 2015 03:41:48 +0000 (11:41 +0800)
committerFrederic Massart <fred@moodle.com>
Tue, 17 Nov 2015 03:41:48 +0000 (11:41 +0800)
extra/bash_completion

index 0a2220c..36222d1 100644 (file)
@@ -186,7 +186,7 @@ function _mdk() {
                 fi
                 ;;
             pull)
-                if [[ "${PREV}" == "-m" ]] || "${PREV}" == "--mode"; then
+                if [[ "$PREV" == "-m" || "$PREV" == "--mode" ]]; then
                     OPTS="checkout fetch integration pull testing"
                 else
                     OPTS="--fetch-only --integration --no-merge --testing --mode --prompt"