shrink_exports: move instead of delete
This commit is contained in:
parent
b40cd3b8bf
commit
561fa1a455
1 changed files with 5 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
PROJECTS_FOLDER=~/music-projects/Rendered-Projects
|
PROJECTS_FOLDER=~/music-projects/Rendered-Projects
|
||||||
|
GARBADGE_FOLDER=/share
|
||||||
|
|
||||||
# file separator (needed to handle files with spaces)
|
# file separator (needed to handle files with spaces)
|
||||||
IFS="
|
IFS="
|
||||||
|
@ -28,8 +29,6 @@ function run_ffmpeg(){
|
||||||
-loglevel error \
|
-loglevel error \
|
||||||
-af loudnorm \
|
-af loudnorm \
|
||||||
"${output}"
|
"${output}"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete(){
|
function delete(){
|
||||||
|
@ -37,8 +36,10 @@ function delete(){
|
||||||
|
|
||||||
if [[ -e "${input}" ]]
|
if [[ -e "${input}" ]]
|
||||||
then
|
then
|
||||||
info_log "delete : ${input}"
|
info_log "move : ${input} to ${GARBADGE_FOLDER}"
|
||||||
rm "${input}"
|
mv "${input}" "${GARBADGE_FOLDER}/$(basename ${input})"
|
||||||
|
#info_log "delete : ${input}"
|
||||||
|
#rm "${input}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue