Handle 'git checkout' error gracefully

This commit is contained in:
0x1eef 2024-04-19 09:49:21 -03:00
parent c447d7eb9d
commit bfdc145d92

View file

@ -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