From 14a96869a47768c9cf754f1181d0dcd4dd74564d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 17 Oct 2023 16:09:12 +0200 Subject: [PATCH] fix tree --- action.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.sh b/action.sh index 01abc17..fbcf928 100755 --- a/action.sh +++ b/action.sh @@ -23,7 +23,7 @@ fi # optionally: create index if [ "${INPUT_INDEX}" ]; then if [ ! -e "${INPUT_DIRECTORY}/index.html" ]; then - tree -H "${INPUT_DIRECTORY}" \ + tree "${INPUT_DIRECTORY}" -a -H "." \ -D \ --charset utf-8 \ -T "${INPUT_INDEX_TITLE}" \ @@ -40,3 +40,5 @@ tar -C "${INPUT_DIRECTORY}" -czf - . \ | ssh -o "IdentitiesOnly=yes" -i "${SSH_KEY_FILE}" \ "${INPUT_HOST_USER}@${INPUT_HOST}" +# remove ssh key +rm "${SSH_KEY_FILE}"