]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
contrib: check for lt 3 arguments
authorSébastien Han <seb@redhat.com>
Wed, 16 May 2018 17:03:33 +0000 (19:03 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 16 May 2018 17:03:33 +0000 (19:03 +0200)
The script now supports 3 or 4 arguments so we need to check if the
script has less 3 args.

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

index c8b4cb9a7f23d06b806dbb0e549b5c08eb36eb45..72d65c11ed98d62447e5055293c8c8232a29c6fa 100755 (executable)
@@ -70,7 +70,7 @@ cleanup () {
 }
 
 test_args () {
-  if [ $# -ne 3 ]; then
+  if [ $# -lt 3 ]; then
     echo "Please run the script like this: ./contrib/backport_to_stable_branch.sh STABLE_BRANCH_NAME COMMIT_SHA1 BACKPORT_BRANCH_NAME"
     echo "We accept multiple commits as soon as they are commas-separated."
     echo "e.g: ./contrib/backport_to_stable_branch.sh stable-2.2 6892670d317698771be7e96ce9032bc27d3fd1e5,8756c553cc8c213fc4996fc5202c7b687eb645a3 my-work"