mirror of https://github.com/kami-blue/client
[fix] Build utils git checking
This commit is contained in:
parent
e0aa4f6f78
commit
147e2d0c62
|
@ -22,7 +22,7 @@ check_git() {
|
|||
if [ ! -d "$(root_kami_dir)/.git" ]; then
|
||||
echo "Could not detect git repository, exiting" >&2
|
||||
exit 1
|
||||
elif [ ! "$(git status | head -n 4 | tail -n 1)" == "nothing to commit, working tree clean" ]; then
|
||||
elif [ ! "$(git status | tail -n 1)" == "nothing to commit, working tree clean" ]; then
|
||||
echo "Either not working in a clean tree or you have unpushed commits. Exiting." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue