From: Sébastien Han Date: Thu, 18 May 2017 12:48:14 +0000 (+0200) Subject: backport_to_stable_branch: fix redirection X-Git-Tag: v2.3.0rc1~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e189d7caa6fbcad8a9a97755d1bf16b6df6ae1f8;p=ceph-ansible.git backport_to_stable_branch: fix redirection 2> to redirect stderr not 2&> Signed-off-by: Sébastien Han --- diff --git a/contrib/backport_to_stable_branch.sh b/contrib/backport_to_stable_branch.sh index c99adf4ff..39632d6d5 100755 --- a/contrib/backport_to_stable_branch.sh +++ b/contrib/backport_to_stable_branch.sh @@ -20,7 +20,7 @@ bkp_branch=$bkp_branch_name-$bkp_branch_name_prefix verify_commit () { for com in ${commit//,/ }; do - if [[ $(git cat-file -t "$com" 2&>/dev/null) != commit ]]; then + if [[ $(git cat-file -t "$com" 2>/dev/null) != commit ]]; then echo "$com does not exist in your tree" echo "Run 'git fetch origin master && git pull origin master'" exit 1