From e189d7caa6fbcad8a9a97755d1bf16b6df6ae1f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 18 May 2017 14:48:14 +0200 Subject: [PATCH] backport_to_stable_branch: fix redirection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2> to redirect stderr not 2&> Signed-off-by: Sébastien Han --- contrib/backport_to_stable_branch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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