From 561fa1a45532189b1c2366f295d3ff68c07bc53d Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 2 Mar 2020 14:40:13 +0800 Subject: [PATCH] shrink_exports: move instead of delete --- assets/shrink_exports | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/shrink_exports b/assets/shrink_exports index fc44ff7..1aab9c1 100755 --- a/assets/shrink_exports +++ b/assets/shrink_exports @@ -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 }