mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
fix: support alternate git status output
This commit is contained in:
2
release
2
release
@@ -34,7 +34,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
|
||||
|
||||
Reference in New Issue
Block a user