files: print source path for detected collision

PR #1236
This commit is contained in:
piegames 2020-05-14 16:02:31 +02:00 committed by Robert Helgesson
parent 645149d77b
commit 6c7a031367
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -90,10 +90,10 @@ in
errorEcho "Existing file '$backup' would be clobbered by backing up '$targetPath'"
collision=1
else
warnEcho "Existing file '$targetPath' is in the way, will be moved to '$backup'"
warnEcho "Existing file '$targetPath' is in the way of '$sourcePath', will be moved to '$backup'"
fi
else
errorEcho "Existing file '$targetPath' is in the way"
errorEcho "Existing file '$targetPath' is in the way of '$sourcePath'"
collision=1
fi
fi