Skip to content

Commit

Permalink
Suppress diff(1) exit status errors
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Oct 13, 2024
1 parent 0ce7941 commit 81d5381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/seagl-refresh-config
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ while ! age --decrypt /var/lib/seagl/config-data.json.age > /var/lib/seagl/confi
done

if test -e /var/lib/seagl/config-data.json; then
diff --color=always /var/lib/seagl/config-data.json{,.new}
diff --color=always /var/lib/seagl/config-data.json{,.new} || true
else
echo | diff --color=always - /var/lib/seagl/config-data.json.new
echo | diff --color=always - /var/lib/seagl/config-data.json.new || true
fi

mv /var/lib/seagl/config-data.json{.new,}
Expand Down

0 comments on commit 81d5381

Please sign in to comment.