diff options
-rwxr-xr-x | ci/kolla-build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/kolla-build.sh b/ci/kolla-build.sh index 53ad8c16..6b7d330d 100755 --- a/ci/kolla-build.sh +++ b/ci/kolla-build.sh @@ -92,7 +92,7 @@ function cleanup_registry_server { echo "Removing containers... $containers_to_kill" (sudo docker rm -v -f ${containers_to_kill} 2>&1) > /dev/null - if [[ ! -z "$containers_to_kill" ]]; then + if [[ ! -z "$volumes_to_remove" ]]; then echo "Removing volumes... $volumes_to_remove" (sudo docker volume rm ${volumes_to_remove} 2>&1) || true > /dev/null fi @@ -145,7 +145,7 @@ function pack_registry_data { function update_kolla_code { echo "Updating Kolla code" if [ ! -d $KOLLA_GIT_DIR ] ; then - mkdir -p $KOLLA_GIT_DIR + mkdir -p $KOLLA_GIT_DIR fi if [ ! -d $KOLLA_GIT_DIR/kolla ] ; then |