From: Oleg Broytman Date: Wed, 4 Sep 2024 18:25:52 +0000 (+0300) Subject: Fix(delete): Fix `cmp` command line X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=873d40b7d112962e4675268c5f3454d6a615c285;p=git-scripts.git Fix(delete): Fix `cmp` command line --- diff --git a/delete b/delete index 6002dc4..eacf01d 100755 --- a/delete +++ b/delete @@ -21,7 +21,7 @@ rm -rf "$path_to_repo" && tmpfile="`mktemp`" && grep -v "^$path_to_repo\$" locate-all.list > "$tmpfile" && -if cmp -s mv "$tmpfile" locate-all.list; then +if cmp -s "$tmpfile" locate-all.list; then exec rm -f "$tmpfile" else exec mv "$tmpfile" locate-all.list