aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/asserts
blob: 0e455382aa57936ea36ae4f3e754cfd7a637c076 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -o xtrace

# asserts_image() - Function that verifies if a specific image was created
function asserts_image {
    if [[ "$(docker images -q $1 2> /dev/null)" == "" ]]; then
        echo "There is no $1 image"
        exit 1
    fi
}