Skip to content

Commit

Permalink
fix: Fix handling of --skip-first argument Update release_crates.sh (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdqst authored Jan 15, 2025
1 parent 0ec6865 commit c60c687
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/release_crates.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c60c687

Please sign in to comment.