From ed588bd7d7a3a441e30917a40f88fd7c4ff2afee Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 21 Jul 2024 22:24:44 -0300 Subject: [PATCH] Continue script execution when "git checkout" fails --- libexec/portzap/commands/portzap-clone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/portzap/commands/portzap-clone b/libexec/portzap/commands/portzap-clone index 64852d2..5e62786 100755 --- a/libexec/portzap/commands/portzap-clone +++ b/libexec/portzap/commands/portzap-clone @@ -34,5 +34,5 @@ fi "${git}" clone "${giturl}" "${gitdir}" cd "${gitdir}" "${git}" config core.filemode off -"${git}" checkout -t origin/"${branch}" +"${git}" checkout -t origin/"${branch}" || true printok "clone complete"