mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-25 05:05:39 +02: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
|
||||
fi
|
||||
|
||||
image=${f%Dockerfile}
|
||||
base=${image%%\/*}
|
||||
suite=${image##*\/}
|
||||
build_dir=$(dirname $f)
|
||||
base=${build_dir%%\/*}
|
||||
suite=${build_dir##*\/}
|
||||
|
||||
if [[ -z "$suite" ]]; then
|
||||
suite=latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user