From 79d9bffba1fc8b3539d2060607d94f1e0a364283 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 17 Mar 2024 17:02:32 +0100 Subject: [PATCH] pkgs/clerie-update-nixfiles: switch branch before removing itself --- pkgs/clerie-update-nixfiles/clerie-update-nixfiles.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/clerie-update-nixfiles/clerie-update-nixfiles.sh b/pkgs/clerie-update-nixfiles/clerie-update-nixfiles.sh index 8054bc9..4ac6a98 100755 --- a/pkgs/clerie-update-nixfiles/clerie-update-nixfiles.sh +++ b/pkgs/clerie-update-nixfiles/clerie-update-nixfiles.sh @@ -69,6 +69,7 @@ echo "[!] biep" if xgit diff --quiet origin/updated-inputs "${UPDATE_BRANCH}" then echo "[!] Nothing changed, removing branch" + xgit checkout updated-inputs xgit branch -D "${UPDATE_BRANCH}" exit 0 fi