diff --git a/ulib/install b/ulib/install index e9d0175..2162c31 100644 --- a/ulib/install +++ b/ulib/install @@ -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"