From 281891b07d20c5bfd329192ff79feb991d997a38 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 17 Feb 2020 11:38:50 -0500 Subject: [PATCH] scripts/symlink-update-hook.py: fix conditionals Otherwise this would fail to update all of the symlinks if any of them were already correct. --- scripts/symlink-update-hook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/symlink-update-hook.py b/scripts/symlink-update-hook.py index 708cdde..6c8413d 100755 --- a/scripts/symlink-update-hook.py +++ b/scripts/symlink-update-hook.py @@ -25,6 +25,6 @@ def migrate(path, link): for repo in Repository.query.all(): if migrate(os.path.join(repo.path, "hooks", "update"), post_update) \ - and migrate(os.path.join(repo.path, "hooks", "post-update"), post_update) \ - and migrate(os.path.join(repo.path, "hooks", "pre-receive"), post_update): + or migrate(os.path.join(repo.path, "hooks", "post-update"), post_update) \ + or migrate(os.path.join(repo.path, "hooks", "pre-receive"), post_update): print("Migrated {}".format(repo.name)) -- 2.38.4