From a853af48c6a2a098f15872d78f99431dd14886b1 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 30 Oct 2013 16:31:19 +0400 Subject: [PATCH] bug --- ulib/install | 3 +++ 1 file changed, 3 insertions(+) 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"