]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
script/ceph-backport.sh: fix sanity test of issue number
authorKefu Chai <kchai@redhat.com>
Thu, 28 Mar 2019 03:57:21 +0000 (11:57 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Mar 2019 04:14:07 +0000 (12:14 +0800)
commit5696085611494b0aaddd126417705277284ff7dd
tree3c8bccb25f903e08054da2db775164940f37f92b
parent4f7a5a0651da3573eebf4aded7ec8833b37b56fd
script/ceph-backport.sh: fix sanity test of issue number

* no need for checking negative numbers
* use regex for matching the number instead of using bash's pattern
  matching, otherwise i have
./ceph-backport.sh: line 79: syntax error in conditional expression:
unexpected token `('
  the pattern matching works fine if i use it in command line, but
  it fails to work in shell script.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/ceph-backport.sh