mirror of
https://codeberg.org/vlw/curl.git
synced 2026-04-13 02:39:38 +02:00
fix: accept at least one argument
This commit is contained in:
parent
e015174467
commit
332b097bda
1 changed files with 1 additions and 1 deletions
2
curl.sh
2
curl.sh
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Check if the correct number of arguments is provided
|
# Check if the correct number of arguments is provided
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ -z "${1:-}" ]; then
|
||||||
echo "Usage: $0 <url> [request_method]"
|
echo "Usage: $0 <url> [request_method]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue