]> git.phdru.name Git - git-scripts.git/commitdiff
Fix(delete): Fix `cmp` command line
authorOleg Broytman <phd@phdru.name>
Wed, 4 Sep 2024 18:25:52 +0000 (21:25 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 4 Sep 2024 18:25:52 +0000 (21:25 +0300)
delete

diff --git a/delete b/delete
index 6002dc4e907b3f57884b233b3ee4a4c8909fe29f..eacf01dfd87884f653b00f6fc39bb015e77fb93a 100755 (executable)
--- 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