From bfdc145d921f01c3a82ff7f0907e335efd2658a9 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 19 Apr 2024 09:49:21 -0300 Subject: [PATCH] Handle 'git checkout' error gracefully --- libexec/portzap/portzap-pull | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/portzap/portzap-pull b/libexec/portzap/portzap-pull index 63fccd9..45395f1 100755 --- a/libexec/portzap/portzap-pull +++ b/libexec/portzap/portzap-pull @@ -50,7 +50,7 @@ cd "${gitdir}" remote=$("${git}" remote | head -n1) if [ "$(git branch --show-current)" != "${branch}" ]; then change_branch "${remote}" "${branch}" - echo "[-] Set filemode. This might take a while" + echo "[-] Adjust filemode for new branch. This might take a while" doas -u root /bin/chmod -R "${mode}" "${gitdir}" fi set -x