aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-27 13:39:48 -0300
committerEuAndreh <eu@euandre.org>2023-02-27 13:40:38 -0300
commitf35ae53e4a15daa3c6f5b5453406efede79d7486 (patch)
treed987dac4957e4e044c6c2cf3e40329a0ded134ee
parentetc/guix/home.scm: Use local version of tmux-plugin-continuum (diff)
downloaddotfiles-f35ae53e4a15daa3c6f5b5453406efede79d7486.tar.gz
dotfiles-f35ae53e4a15daa3c6f5b5453406efede79d7486.tar.xz
Makefile: Also check if private is out of sync
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index dd968f5..9036929 100644
--- a/Makefile
+++ b/Makefile
@@ -107,7 +107,12 @@ check-fixme:
check-dirty-public:
if ! git diff --quiet || ! git diff --quiet --staged; then \
- printf 'Dirty tilde repository.\n' >&2; \
+ printf 'Dirty ~/.usr/ repository.\n' >&2; \
+ exit 1; \
+ fi
+ if git status --short --branch --porcelain | \
+ head -n1 | grep -E '(ahead|behind)'; then \
+ printf '~/.usr/ of sync with origin.\n' >&2; \
exit 1; \
fi
@@ -117,6 +122,11 @@ check-dirty-private:
printf 'Dirty private tilde repository.\n' >&2; \
exit 1; \
fi
+ if git -C $(PRIV_CONFIG) status --short --branch --porcelain | \
+ head -n1 | grep -E '(ahead|behind)'; then \
+ printf 'Private of sync with origin.\n' >&2; \
+ exit 1; \
+ fi
check-dirty-pass:
if ! git -C $(PASSWORD_STORE_DIR) diff --quiet || \
@@ -136,15 +146,9 @@ check-opt:
check-pod:
podchecker bin/z
-check-sync:
- if git status --short --branch --porcelain | head -n1 | grep -E '(ahead|behind)'; then \
- printf 'Out of sync with origin.\n' >&2; \
- exit 1; \
- fi
-
check: check-shellcheck check-perlcritic check-nixfmt check-fixme \
check-dirty-public check-dirty-private check-dirty-pass \
- check-opt check-pod check-sync
+ check-opt check-pod
@cd $(PRIV_CONFIG) && $(MAKE) $@
clean: