diff --git a/curl.sh b/curl.sh index 4cb6b42..1c66e78 100755 --- a/curl.sh +++ b/curl.sh @@ -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 [request_method]" exit 1 fi