fix: accept at least one argument

This commit is contained in:
Victor Westerlund 2026-04-06 11:05:00 +02:00
parent e015174467
commit 332b097bda
Signed by: vlw
GPG key ID: 5DAF14C317AA7719

View file

@ -1,7 +1,7 @@
#!/bin/bash
# Check if the correct number of arguments is provided
if [ "$#" -ne 1 ]; then
if [ -z "${1:-}" ]; then
echo "Usage: $0 <url> [request_method]"
exit 1
fi