summaryrefslogtreecommitdiff
path: root/admin/diff-tar-files
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-12-02 23:51:35 +0100
committerStefan Kangas <stefan@marxist.se>2021-12-02 23:54:01 +0100
commitbbf4140091da0938df2ebcf9b0cf5f31c11365f6 (patch)
treeb04ecc30398db2c2f5601be05b30468f43b2af1c /admin/diff-tar-files
parent0a50ad11dbc949669ec2c03091aa6f6b81288b0f (diff)
downloademacs-bbf4140091da0938df2ebcf9b0cf5f31c11365f6.tar.gz
* admin/diff-tar-files: Don't assume .tar.gz.
Diffstat (limited to 'admin/diff-tar-files')
-rwxr-xr-xadmin/diff-tar-files4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/diff-tar-files b/admin/diff-tar-files
index cdcc512ae6b..2fe15401d0d 100755
--- a/admin/diff-tar-files
+++ b/admin/diff-tar-files
@@ -35,7 +35,7 @@ old_tmp=/tmp/old.$$
new_tmp=/tmp/new.$$
trap "rm -f $old_tmp $new_tmp; exit 1" 1 2 15
-tar tzf "$old_tar" | sed -e 's,^[^/]*,,' | sort > $old_tmp
-tar tzf "$new_tar" | sed -e 's,^[^/]*,,' | sort > $new_tmp
+tar tf "$old_tar" | sed -e 's,^[^/]*,,' | sort > $old_tmp
+tar tf "$new_tar" | sed -e 's,^[^/]*,,' | sort > $new_tmp
diff -u $old_tmp $new_tmp
rm -f $new_tmp $old_tmp