1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3772 from holta/iiab-update2

iiab-update: Permit /opt/iiab/iiab untracked files like adm-run-roles-tmp.yml
This commit is contained in:
A Holt 2024-07-18 16:32:26 -04:00 committed by GitHub
commit 333dbf3be7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@
fi
cd /opt/iiab/iiab
if [[ $(git branch --show-current) != "master" || $(git status --porcelain) != "" ]]; then
if [[ $(git branch --show-current) != "master" || $(git status --porcelain --untracked-files=no) != "" ]]; then # Permit detritus, e.g. untracked files like adm-run-roles-tmp.yml
echo -e "\n\n\e[41;1mIn /opt/iiab/iiab, (1) 'git branch' MUST show current branch 'master' and (2) 'git status' must show NO MODIFIED FILES.\e[0m\n\n"
exit 1
fi