shrink_exports: move instead of delete

feature/hass
Ingolf Wagner 2020-03-02 14:40:13 +08:00
parent b40cd3b8bf
commit 561fa1a455
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
1 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
set -e
PROJECTS_FOLDER=~/music-projects/Rendered-Projects
GARBADGE_FOLDER=/share
# file separator (needed to handle files with spaces)
IFS="
@ -28,8 +29,6 @@ function run_ffmpeg(){
-loglevel error \
-af loudnorm \
"${output}"
}
function delete(){
@ -37,8 +36,10 @@ function delete(){
if [[ -e "${input}" ]]
then
info_log "delete : ${input}"
rm "${input}"
info_log "move : ${input} to ${GARBADGE_FOLDER}"
mv "${input}" "${GARBADGE_FOLDER}/$(basename ${input})"
#info_log "delete : ${input}"
#rm "${input}"
fi
}