backport_to_stable_branch: fix redirection

2> to redirect stderr not 2&>

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/1134/merge
Sébastien Han 2017-05-18 14:48:14 +02:00
parent d0fa3930fc
commit e189d7caa6
1 changed files with 1 additions and 1 deletions

View File

@ -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