summaryrefslogtreecommitdiff
path: root/contrib/pacdiff.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pacdiff.sh.in')
-rw-r--r--contrib/pacdiff.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in
index f31e17c8..095f7b6e 100644
--- a/contrib/pacdiff.sh.in
+++ b/contrib/pacdiff.sh.in
@@ -92,8 +92,8 @@ while IFS= read -u 3 -r -d '' pacfile; do
rm -iv "$pacfile"
continue
fi
- check="$(cmp "$pacfile" "$file")"
- if [ -z "${check}" ]; then
+
+ if cmp -s "$pacfile" "$file"; then
echo " Files are identical, removing..."
rm -v "$pacfile"
else