From bef106d127abd12cae53dffdc9a4f98ed9906226 Mon Sep 17 00:00:00 2001 From: Steven Agyekum Date: Thu, 8 Jun 2023 17:23:41 +0200 Subject: [PATCH] validate remote_path is not empty --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 9d0f2b5..8b437e7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,10 @@ #!/bin/sh +if [ -z "$(awk '{$1=$1};1' <<< "$INPUT_REMOTE_PATH")" ]; then + echo "The remote_path can not be empty. see: github.com/Burnett01/rsync-deployments/issues/44" + exit 1 +fi + # Start the SSH agent and load key. source agent-start "$GITHUB_ACTION" echo "$INPUT_REMOTE_KEY" | SSH_PASS="$INPUT_REMOTE_KEY_PASS" agent-add