From: Sébastien Han Date: Wed, 16 May 2018 17:03:33 +0000 (+0200) Subject: contrib: check for lt 3 arguments X-Git-Tag: v3.2.0beta1~140 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a55ff1cfe29b526a4674b1e6b037ef60b62fa9a6;p=ceph-ansible.git contrib: check for lt 3 arguments 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 --- diff --git a/contrib/backport_to_stable_branch.sh b/contrib/backport_to_stable_branch.sh index c8b4cb9a7..72d65c11e 100755 --- a/contrib/backport_to_stable_branch.sh +++ b/contrib/backport_to_stable_branch.sh @@ -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"