diff --git a/release b/release index 77b7bc5..51d93e3 100755 --- a/release +++ b/release @@ -37,7 +37,7 @@ fi echo -e "\n${GREEN}STARTING RELEASE PROCESS${COLOR_OFF}\n" set +e; -git status | grep "working directory clean" &> /dev/null +git status | grep -Eo "working (directory|tree) clean" &> /dev/null if [ ! $? -eq 0 ]; then # working directory is NOT clean echo -e "${RED}WARNING: You have uncomitted changes, you may have forgotten something${COLOR_OFF}\n" exit 1