diff --git a/.hooks/pre-create b/.hooks/pre-create index 06215b2..4501f89 100755 --- a/.hooks/pre-create +++ b/.hooks/pre-create @@ -1,8 +1,7 @@ #!/bin/bash filename=$(cat /dev/stdin | jq .MetaData.filename) - -if [ -n "$filename" ]; then +if [ -z "$filename" ]; then echo "Error: no filename provided" exit 1 fi