add msg when scp

This commit is contained in:
Antonio J. Delgado 2023-02-26 21:41:55 +02:00
parent 0d3794eb81
commit de803ea4d4

View file

@ -183,6 +183,7 @@ if [ -n "${file}" ]; then
file_uri=$(echo "${file}" | sed 's|/srv/expendable_data|https://ficheros.koti.site|g')
data="${data}, \"file_uri\": \"${file_uri}\""
if [ -n "${move_to}" ]; then
message "Moving file '${file}' to '${move_to}'..."
scp -P "${move_to_port}" "${file}" "${move_to}/" && rm -rf "${file}"
fi
fi