fix: accept at least one argument (#11)

We should accept at least one argument since we made the second argument optional in #9

Reviewed-on: https://codeberg.org/vlw/curl/pulls/11
This commit is contained in:
Victor Westerlund 2026-04-06 11:17:12 +02:00
parent e015174467
commit 7b70a6e51d

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