updated variable

This commit is contained in:
cagache
2018-06-28 14:44:19 +03:00
parent 90c22c66f5
commit b809d899f5

View File

@@ -1,11 +1,10 @@
#!/bin/bash
imagesToBeDeleted=$1
echo $imagesToBeDeleted
echo $IMAGES_TO_BE_DELETED
echo "List all images:"
docker images -a
docker_images_list=$(docker images | grep $imagesToBeDeleted | awk '{print $3}' | uniq)
docker_images_list=$(docker images | grep $IMAGES_TO_BE_DELETED | awk '{print $3}' | uniq)
if [ "$docker_images_list" == "" ]; then
echo "No docker images on the agent"
else