summaryrefslogtreecommitdiff
path: root/unclean.d/50test
blob: 04958154e156fb56defe8b9eba020e4d7380fb7a (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
set -e

if [ "$VCS" = git ]; then
	[ -d .git ] && ! LANG=C git-status 2>&1 | grep -q "working directory clean"
elif [ "$VCS" = hg ]; then
	[ -d .hg ] && ! hg status 2>&1 | wc -l | grep -q "^0$"
fi