diff --git a/plugins/localstack/localstack.plugin.zsh b/plugins/localstack/localstack.plugin.zsh index 080b14a54..5929b4222 100644 --- a/plugins/localstack/localstack.plugin.zsh +++ b/plugins/localstack/localstack.plugin.zsh @@ -28,10 +28,10 @@ lsk() { # Example # sqs-send user user.json sqs-send(){ - if [ -z "$1" ]; then - echo "Use: sqs-send " + if [ -z "$1" ] || [ -z "$2" ]; then + echo "Use: sqs-send " >&2 return 1 fi - curl -X POST "http://localhost:4566/000000000000/$1" -d "Action=SendMessage" -d "MessageBody=$(cat $2)" + curl -X POST "http://localhost:4566/000000000000/$1" -d "Action=SendMessage" -d "MessageBody=$(cat "$2")" } \ No newline at end of file