From 955030c520dc78c7da6b1d056e6e1ff64188df5e Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 2 Mar 2017 20:20:01 +0800 Subject: Fix an error in docker volume remove Replace $containers_to_kill with $volumes_to_remove in docker volumes removing. Change-Id: I715ff135099be0a8c9424ab3f94509ee72558415 Signed-off-by: Alex Yang --- ci/build_rpm/build_rpms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build_rpm/build_rpms.sh b/ci/build_rpm/build_rpms.sh index 811eb13a..db5a42e9 100755 --- a/ci/build_rpm/build_rpms.sh +++ b/ci/build_rpm/build_rpms.sh @@ -40,7 +40,7 @@ function cleanup_container { 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 -- cgit 1.2.3-korg