From c60c687689b0d9df4594b8e4349f6ab97e93ae15 Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:26:51 +0300 Subject: [PATCH] fix: Fix handling of --skip-first argument Update release_crates.sh (#7087) --- scripts/release_crates.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/release_crates.sh b/scripts/release_crates.sh index 58aa67949af..03fee32838d 100755 --- a/scripts/release_crates.sh +++ b/scripts/release_crates.sh @@ -1,5 +1,9 @@ # An optional argument, '-s | --skip-first <#num_to_skip>', can be passed to skip the first #num_to_skip crates, otherwise SKIP_FIRST is set to 0. if [ "$1" == "-s" ] || [ "$1" == "--skip-first" ]; then + if [ -z "$2" ]; then + echo "Error: --skip-first requires a numeric argument." + exit 1 + fi SKIP_FIRST=$2 else SKIP_FIRST=0