aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-17 18:15:35 +0900
committernsfisis <nsfisis@gmail.com>2025-07-17 18:15:35 +0900
commit6d08163acc808ba724c99d8690de5522fa392722 (patch)
treeebf3ad20ed2498e3ad28e10b671a766956f1aed3
parent85204aa48c485994855870ceca6affc453452725 (diff)
downloaddotfiles-6d08163acc808ba724c99d8690de5522fa392722.tar.gz
dotfiles-6d08163acc808ba724c99d8690de5522fa392722.tar.zst
dotfiles-6d08163acc808ba724c99d8690de5522fa392722.zip
just: fix sync task
-rw-r--r--justfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/justfile b/justfile
index 43e914d..4494b77 100644
--- a/justfile
+++ b/justfile
@@ -15,11 +15,11 @@ update-nur-packages:
sync HOST=default_host:
git fetch --all
if git diff --quiet; then \
- git stash save; \
git switch -d origin/main; \
- git stash pop; \
else \
+ git stash save; \
git switch -d origin/main; \
+ git stash pop; \
fi
just switch "{{HOST}}"