Merge "Ignore error when /opt/git does not exist"
This commit is contained in:
commit
2217f23cf4
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue