bug
This commit is contained in:
parent
8cfba1fb39
commit
a853af48c6
|
@ -92,6 +92,9 @@ function copy_update_ask() {
|
||||||
# Retourner vrai si le fichier a été copié sans erreur.
|
# Retourner vrai si le fichier a été copié sans erreur.
|
||||||
local src="$1" dest="$2"
|
local src="$1" dest="$2"
|
||||||
|
|
||||||
|
[ -d "$dest" ] && dest="$dest/$(basename "$src")"
|
||||||
|
mkdirof "$dest" || return 1
|
||||||
|
|
||||||
[ -f "$dest" ] || copy_replace "$src" "$dest"
|
[ -f "$dest" ] || copy_replace "$src" "$dest"
|
||||||
if testdiff "$src" "$dest"; then
|
if testdiff "$src" "$dest"; then
|
||||||
diff -u "$dest" "$src"
|
diff -u "$dest" "$src"
|
||||||
|
|
Loading…
Reference in New Issue