From 7ae82864a7c80a6240dea3cdc6d882fc2337ce2f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 15 Jun 2023 12:25:59 +0200 Subject: [SSUS] Use cmp instead of diff --- satellit_upgrader/updater.template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 13be0b7..71d8097 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -138,7 +138,7 @@ diffcp () { [ -f "$SRC" ] || perror "$1/$2 included in updater, but is not regular file." if [ -e "$DST" ]; then [ -f "$DST" ] || perror "$DST exists and is not a regular file, cannot replace." - diff -q "$SRC" "$DST" &>/dev/null && return 1 # diff returns 0 if files are equal + cmp -s "$SRC" "$DST" &>/dev/null && return 1 # cmp returns 0 if files are equal fi if [ -n "$3" ]; then echo "$3" -- cgit v1.2.3-55-g7522