diff mbox series

[v2,for-8.0,1/5] scripts/make-release: Add a simple help text for the script

Message ID 20221128092555.37102-2-thuth@redhat.com (mailing list archive)
State New, archived
Headers show
Series scripts/make-release: Decrease size of the release tarballs | expand

Commit Message

Thomas Huth Nov. 28, 2022, 9:25 a.m. UTC
Print a simple help text if the script has been called with the
wrong amount of parameters.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 scripts/make-release | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Alex Bennée Nov. 28, 2022, 4:47 p.m. UTC | #1
Thomas Huth <thuth@redhat.com> writes:

> Print a simple help text if the script has been called with the
> wrong amount of parameters.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
diff mbox series

Patch

diff --git a/scripts/make-release b/scripts/make-release
index 05b14ecc95..4be9b3b9ce 100755
--- a/scripts/make-release
+++ b/scripts/make-release
@@ -10,6 +10,12 @@ 
 # This work is licensed under the terms of the GNU GPLv2 or later.
 # See the COPYING file in the top-level directory.
 
+if [ $# -ne 2 ]; then
+    echo "Usage:"
+    echo " $0 gitrepo version"
+    exit 0
+fi
+
 src="$1"
 version="$2"
 destination=qemu-${version}