Merge "Ignore error when /opt/git does not exist"

This commit is contained in:
Zuul 2019-10-18 18:30:26 +00:00 committed by Gerrit Code Review
commit 2217f23cf4
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ if [ -f /etc/nodepool/provider ] ; then
# In order to save space remove the cached git repositories, at this point in
# CI the ones we are interested in have been cloned to /opt/stack/new. We
# can also remove some distro images cached on the images.
sudo rm -rf /opt/git
sudo find /opt/git -delete || true
{% endif %}
fi

View File

@ -34,7 +34,7 @@ if [ -f /etc/nodepool/provider ] ; then
# CI the ones we are interested in have been cloned to /opt/stack/new. We
# can also remove some distro images cached on the images.
# rm -rf spawns a separate process for each file, lets use find -delete
sudo find /opt/git -delete
sudo find /opt/git -delete || true
fi
fi