1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 12:12:12 +00:00

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:28:14 -04:00 committed by GitHub
parent 732ddf8011
commit cdd94f84d9
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