[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61366: [PATCH] ; Add usage, will not continue if no parameters are p
From: |
lux |
Subject: |
bug#61366: [PATCH] ; Add usage, will not continue if no parameters are provided. |
Date: |
Sat, 18 Feb 2023 23:27:34 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Xi Lu <lx@shellcodes.org> writes:
> ---
> admin/notes/tree-sitter/build-module/build.sh | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/admin/notes/tree-sitter/build-module/build.sh
> b/admin/notes/tree-sitter/build-module/build.sh
> index 9dc674237ca..08a71c1dde1 100755
> --- a/admin/notes/tree-sitter/build-module/build.sh
> +++ b/admin/notes/tree-sitter/build-module/build.sh
> @@ -3,6 +3,12 @@
> lang=$1
> topdir="$PWD"
>
> +if [ $# -lt 1 ]
> +then
> + echo "Usage: $0 <language>"
> + exit
> +fi
> +
> case $(uname) in
> "Darwin")
> soext="dylib"
This patch need to review. If not give the `language' paramter, some
errors will be printed.
IMHO, Can the batch.sh and build.sh merge to one shell file?