summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--satellit_upgrader/updater.template.sh2
1 files changed, 1 insertions, 1 deletions
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"