fix diff redirection
This commit is contained in:
parent
4917b65581
commit
dc1766ac3b
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ check ()
|
||||||
filename=${1/$origin/} # on garde le chemin dans le dossier d'origine
|
filename=${1/$origin/} # on garde le chemin dans le dossier d'origine
|
||||||
pathfile=$(dirname $filename) # chemin sans le nom du fichier
|
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
|
case $? in
|
||||||
1) echo -e "[$blue C $reset] Copie de $1 vers $tmp."
|
1) echo -e "[$blue C $reset] Copie de $1 vers $tmp."
|
||||||
cp $1 $tmp
|
cp $1 $tmp
|
||||||
|
|
Loading…
Reference in a new issue