mirror of https://github.com/CIRCL/Circlean
Skip files that we are unable to copy & write it in the log.
parent
a6205eff13
commit
0458928515
|
@ -14,13 +14,12 @@ LOGFILE="${LOGS}/processing.txt"
|
||||||
# Something went wrong.
|
# Something went wrong.
|
||||||
error_handler(){
|
error_handler(){
|
||||||
echo "FAILED." >> ${LOGFILE}
|
echo "FAILED." >> ${LOGFILE}
|
||||||
echo "Something went wrong during the duplication." >> ${LOGFILE}
|
echo "Something went wrong during the duplication of the last file." >> ${LOGFILE}
|
||||||
echo "Please open a bug on https://www.github.com/Rafiot/KittenGroomer" >> ${LOGFILE}
|
echo "Please open a bug on https://www.github.com/Rafiot/KittenGroomer" >> ${LOGFILE}
|
||||||
|
|
||||||
exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trap error_handler INT
|
trap error_handler ERR TERM INT
|
||||||
|
|
||||||
copy(){
|
copy(){
|
||||||
src_file=${1}
|
src_file=${1}
|
||||||
|
@ -214,3 +213,5 @@ main(){
|
||||||
IFS=$SAVEIFS
|
IFS=$SAVEIFS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "Copy finished successfully." >> ${LOGFILE}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue