[fix] Build utils git checking

This commit is contained in:
Dominika 2020-11-27 03:39:19 -05:00
parent e0aa4f6f78
commit 147e2d0c62
No known key found for this signature in database
GPG Key ID: B4A5A6DCA70F861F
1 changed files with 1 additions and 1 deletions

View File

@ -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