Fixed suite variable getting null value for nested directory. (#382)

Signed-off-by: Umesh Yadav <umesh4257@gmail.com>
This commit is contained in:
Umesh Yadav 2018-05-25 21:30:54 +05:30 committed by Jess Frazelle
parent b5d368491a
commit 258090d6b6

View File

@ -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