diff options
author | Simon Rettberg | 2023-06-15 12:25:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-06-15 12:25:59 +0200 |
commit | 7ae82864a7c80a6240dea3cdc6d882fc2337ce2f (patch) | |
tree | f2ec0b1cf9fa2ce7de7a53cd45627280c1b0dc34 /satellit_upgrader | |
parent | [SSUS] Update old sat warning (diff) | |
download | setup-scripts-7ae82864a7c80a6240dea3cdc6d882fc2337ce2f.tar.gz setup-scripts-7ae82864a7c80a6240dea3cdc6d882fc2337ce2f.tar.xz setup-scripts-7ae82864a7c80a6240dea3cdc6d882fc2337ce2f.zip |
[SSUS] Use cmp instead of diff
Diffstat (limited to 'satellit_upgrader')
-rw-r--r-- | satellit_upgrader/updater.template.sh | 2 |
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" |