Test whether filename is empty during pre-create hook
This commit is contained in:
parent
36f646851d
commit
3adec97aa5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue