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 directory. (#382)
Signed-off-by: Umesh Yadav <umesh4257@gmail.com>
This commit is contained in:
parent
b5d368491a
commit
258090d6b6
7
test.sh
7
test.sh
|
@ -33,9 +33,10 @@ for f in "${files[@]}"; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build_dir=$(dirname $f)
|
build_dir=$(dirname "$f")
|
||||||
base=${build_dir%%\/*}
|
base="${build_dir%%\/*}"
|
||||||
suite=${build_dir##*\/}
|
suite="${build_dir##$base}"
|
||||||
|
suite="${suite##\/}"
|
||||||
|
|
||||||
if [[ -z "$suite" ]]; then
|
if [[ -z "$suite" ]]; then
|
||||||
suite=latest
|
suite=latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user