From: Frederic Massart Date: Tue, 17 Nov 2015 03:41:48 +0000 (+0800) Subject: Fix invalid bash code in auto completion X-Git-Tag: v1.5.4~7 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=1ce852af8f25e3020c53caf765c671d56199b654;p=mdk.git Fix invalid bash code in auto completion --- diff --git a/extra/bash_completion b/extra/bash_completion index 0a2220c..36222d1 100644 --- a/extra/bash_completion +++ b/extra/bash_completion @@ -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"