blob: 409d67480f2765497d88a4e0e86524b3d623b036 (
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
|