From a55ff1cfe29b526a4674b1e6b037ef60b62fa9a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 16 May 2018 19:03:33 +0200 Subject: [PATCH] contrib: check for lt 3 arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- contrib/backport_to_stable_branch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5