summaryrefslogtreecommitdiffstats
path: root/ci/build_rpm
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-03-02 20:20:01 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-03-02 20:20:01 +0800
commit955030c520dc78c7da6b1d056e6e1ff64188df5e (patch)
tree8281e3c2977800b1ff3189b2f4e5a910417334f4 /ci/build_rpm
parentf6a8df558e69139779cd7823b676f8856d358aa6 (diff)
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 <yangyang1@zte.com.cn>
Diffstat (limited to 'ci/build_rpm')
-rwxr-xr-xci/build_rpm/build_rpms.sh2
1 files changed, 1 insertions, 1 deletions
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