Skip to content

Commit

Permalink
optional arg
Browse files Browse the repository at this point in the history
  • Loading branch information
khos2ow committed Jan 20, 2025
1 parent 86865aa commit 0ba05bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ parse_flag() {
return
fi

echo "Error: argument for $1 is missing" >&2
exit 1
if [ "$1" != "--only-package" ]; then
echo "Error: argument for $1 is missing" >&2
exit 1
fi
}

MODE="" # build, check
Expand Down

0 comments on commit 0ba05bf

Please sign in to comment.