Skip to content

Commit

Permalink
improved string empty check for remote_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Burnett01 authored Jun 8, 2023
1 parent 570fd6b commit d732b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

if [ -z "$(awk '{$1=$1} END{print}' <<< "$INPUT_REMOTE_PATH")" ]; then
if [ -z "$(echo "$INPUT_REMOTE_PATH" | awk '{$1=$1};1')" ]; then
echo "The remote_path can not be empty. see: github.com/Burnett01/rsync-deployments/issues/44"
exit 1
fi
Expand Down

0 comments on commit d732b39

Please sign in to comment.