Added check if destination is still reachable

This commit is contained in:
Jeroen De Meerleer 2018-11-30 17:24:40 +01:00
parent b872adb7fe
commit 1393aad7c0
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ ConvertFiles() {
CopyFiles() {
while read -r line
do
if [[ ! -f "$dest" ]]; then
VerboseOutput 5 "Destination not reachable (anymore)"
fi
VerboseOutput 1 "Copying: $line"
if [[ "$dest/$line" = */* ]]; then
mkdir -p "$dest/${line%/*}";