fix empty string check

This commit is contained in:
Steven Agyekum 2023-06-08 17:27:31 +02:00 committed by GitHub
parent bef106d127
commit 570fd6bb52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if [ -z "$(awk '{$1=$1};1' <<< "$INPUT_REMOTE_PATH")" ]; then if [ -z "$(awk '{$1=$1} END{print}' <<< "$INPUT_REMOTE_PATH")" ]; then
echo "The remote_path can not be empty. see: github.com/Burnett01/rsync-deployments/issues/44" echo "The remote_path can not be empty. see: github.com/Burnett01/rsync-deployments/issues/44"
exit 1 exit 1
fi fi