From b0e1c580ecb7c955f5076eb197a8fccbdbe65d1e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 11 Jul 2025 19:55:05 +0900 Subject: just: fix justfile --- justfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index a6f078d..c2177f4 100644 --- a/justfile +++ b/justfile @@ -14,9 +14,13 @@ update-nur-packages: sync HOST=default_host: git fetch --all - git stash save - git switch -d origin/main - git stash pop + if git diff --quiet; then \ + git stash save; \ + git switch -d origin/main; \ + git stash pop; \ + else \ + git switch -d origin/main; \ + fi just switch "{{HOST}}" switch HOST=default_host: -- cgit v1.2.3-70-g09d2