mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
generate-version: exit early if argc is not 3
Print usage information and exit if the number of arguments is not 3.
This commit is contained in:
parent
63b12d4cdc
commit
a9bbbda1c7
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
set -e
|
||||
|
||||
if [ ${#} -ne 3 ]; then
|
||||
echo "Usage: ${0} <default_version> <src_dir> <out_file>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
default_version=${1}
|
||||
src_dir=${2}
|
||||
out_file=${3}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue