]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
backport_to_stable_branch: fix redirection
authorSébastien Han <seb@redhat.com>
Thu, 18 May 2017 12:48:14 +0000 (14:48 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 18 May 2017 12:48:14 +0000 (14:48 +0200)
2> to redirect stderr not 2&>

Signed-off-by: Sébastien Han <seb@redhat.com>
contrib/backport_to_stable_branch.sh

index c99adf4ff92a0b4ec3c85694a8a47ee31a08b54c..39632d6d510752f0a05094d1ea6871fcbe0f2ad3 100755 (executable)
@@ -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