From 147e2d0c625fb7fc6fe9b757db929261d90f768d Mon Sep 17 00:00:00 2001 From: Dominika Date: Fri, 27 Nov 2020 03:39:19 -0500 Subject: [PATCH] [fix] Build utils git checking --- scripts/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index 70a7b88a4..f5daa9abd 100755 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -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