From dc1766ac3b4c42898eb2ec237eb22b4d00bea098 Mon Sep 17 00:00:00 2001 From: rick Date: Sun, 3 Apr 2022 03:53:02 +0200 Subject: [PATCH] fix diff redirection --- import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.sh b/import.sh index 922692d..9bd8991 100755 --- a/import.sh +++ b/import.sh @@ -44,7 +44,7 @@ check () filename=${1/$origin/} # on garde le chemin dans le dossier d'origine pathfile=$(dirname $filename) # chemin sans le nom du fichier - diff -q $1 $tmp 2> /dev/null + diff -q $1 $tmp 1> /dev/null 2>&1 case $? in 1) echo -e "[$blue C $reset] Copie de $1 vers $tmp." cp $1 $tmp