Fix default value for argument.

This commit is contained in:
jcamiel 2022-12-19 17:23:29 +01:00
parent 81c4ba8b24
commit e3dd4493c1
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC

View File

@ -84,7 +84,7 @@ which_is_the_newest_version() {
main() { main() {
# init vars # init vars
crates_api_root_url="https://crates.io/api/v1/crates" crates_api_root_url="https://crates.io/api/v1/crates"
arg="$1" arg="${1:-}"
check_args "${arg}" check_args "${arg}"
updated_count=0 updated_count=0