This commit is contained in:
Maximilian Keßler 2023-10-17 16:09:12 +02:00
parent 37da2de5a1
commit 14a96869a4
Signed by: max
GPG Key ID: BCC5A619923C0BA5

View File

@ -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}"