summaryrefslogtreecommitdiffstats
path: root/ci/build_rpm/build_rpms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/build_rpm/build_rpms.sh')
-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