1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-25 02:29:32 +02:00

[Update] Check if file is tracked before running git rm

This commit is contained in:
andryyy 2019-06-10 22:44:10 +02:00
parent 7145c380b0
commit 59e4212702
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -316,7 +316,7 @@ git remote set-url origin https://github.com/mailcow/mailcow-dockerized
echo -e "\e[32mCommitting current status...\e[0m"
[[ -z "$(git config user.name)" ]] && git config user.name moo
[[ -z "$(git config user.email)" ]] && git config user.email moo@cow.moo
git rm data/conf/rspamd/override.d/worker-controller-password.inc 2> /dev/null
[[ ! -z $(git ls-files data/conf/rspamd/override.d/worker-controller-password.inc) ]] && git rm data/conf/rspamd/override.d/worker-controller-password.inc
git add -u
git commit -am "Before update on ${DATE}" > /dev/null
echo -e "\e[32mFetching updated code from remote...\e[0m"