Skip to content

Commit

Permalink
Don't stop after showing one dry run diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
conormcd committed Dec 17, 2013
1 parent 47822db commit 96a0a34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions control/lib/common
Expand Up @@ -58,7 +58,7 @@ copyfile() {
fi
elif dry_run; then
echo "Will apply the following diff to ${dst}:"
diff -ruN ${dst} ${src}
diff -ruN ${dst} ${src} || true
else
cmd cp ${src} ${dst}
fi
Expand Down Expand Up @@ -104,7 +104,7 @@ copyfile_encrypted() {
if ! diff -q ${tempfile} ${dst} 2>&1 > /dev/null; then
if dry_run; then
echo "Will apply the following diff to ${dst}:"
diff -ruN ${dst} ${tempfile}
diff -ruN ${dst} ${tempfile} || true
else
cmd cp ${tempfile} ${dst}
fi
Expand All @@ -114,7 +114,7 @@ copyfile_encrypted() {
if ! diff -q ${tempfile} ${dst} 2>&1 > /dev/null; then
if dry_run; then
echo "Will apply the following diff to ${dst}:"
diff -ruN ${tempfile} ${src}
diff -ruN ${tempfile} ${src} || true
else
openssl_enc ${tempfile} ${dst}
fi
Expand Down

0 comments on commit 96a0a34

Please sign in to comment.