This commit is contained in:
Jephté Clain 2013-10-30 16:31:19 +04:00
parent 8cfba1fb39
commit a853af48c6
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ function copy_update_ask() {
# Retourner vrai si le fichier a été copié sans erreur.
local src="$1" dest="$2"
[ -d "$dest" ] && dest="$dest/$(basename "$src")"
mkdirof "$dest" || return 1
[ -f "$dest" ] || copy_replace "$src" "$dest"
if testdiff "$src" "$dest"; then
diff -u "$dest" "$src"