mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
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:
parent
7efe0c1d28
commit
b5d368491a
5
test.sh
5
test.sh
|
@ -33,10 +33,9 @@ for f in "${files[@]}"; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
image=${f%Dockerfile}
|
|
||||||
base=${image%%\/*}
|
|
||||||
suite=${image##*\/}
|
|
||||||
build_dir=$(dirname $f)
|
build_dir=$(dirname $f)
|
||||||
|
base=${build_dir%%\/*}
|
||||||
|
suite=${build_dir##*\/}
|
||||||
|
|
||||||
if [[ -z "$suite" ]]; then
|
if [[ -z "$suite" ]]; then
|
||||||
suite=latest
|
suite=latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user