aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8defd89..07d9992 100644
--- a/Makefile
+++ b/Makefile
@@ -110,6 +110,18 @@ check-dirty-private:
exit 1; \
fi
+check-dirty-pass:
+ if ! git -C $(PASSWORD_STORE_DIR) diff --quiet || \
+ ! git -C $(PASSWORD_STORE_DIR) diff --quiet --staged; then \
+ printf 'Dirty password store repository.\n' >&2; \
+ exit 1; \
+ fi
+ if git -C $(PASSWORD_STORE_DIR) status --short --branch --porcelain | \
+ head -n1 | grep -E '(ahead|behind)'; then \
+ printf 'Password store rut of sync with origin.\n' >&2; \
+ exit 1; \
+ fi
+
check-opt:
find opt/tests/ -name '*.sh' -exec sh {} +
@@ -123,7 +135,8 @@ check-sync:
fi
check: check-shellcheck check-perlcritic check-fixme check-dirty-public \
- check-dirty-private check-opt check-pod check-sync
+ check-dirty-private check-dirty-pass check-opt check-pod \
+ check-sync
@cd $(PRIV_CONFIG) && $(MAKE) $@
clean: