Fixed suite variable getting null value for nested repo as well. (#381)

Signed-off-by: Umesh Yadav <umesh4257@gmail.com>
This commit is contained in:
Umesh Yadav 2018-05-25 03:31:53 +05:30 committed by Jess Frazelle
parent 7efe0c1d28
commit b5d368491a

View File

@ -33,10 +33,9 @@ for f in "${files[@]}"; do
continue
fi
image=${f%Dockerfile}
base=${image%%\/*}
suite=${image##*\/}
build_dir=$(dirname $f)
base=${build_dir%%\/*}
suite=${build_dir##*\/}
if [[ -z "$suite" ]]; then
suite=latest