Commit dedb207a authored by KatolaZ's avatar KatolaZ

Solved bug in check_pending_commits

parent 5e411f8a
......@@ -37,7 +37,7 @@ check_git(){
## function
check_pending_commits(){
IS_CLEAN=$(git status 2>&1 | grep -c -E "working tree clean")
IS_CLEAN=$(git status 2>&1 | grep -c -E "working.+clean")
if [ "${IS_CLEAN}" = "0" ]; then
echo "There are uncommitted changes or untracked files present.\n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment