Commit 018123e9 authored by Kevin's avatar Kevin
Browse files

Avoid having empty element in versions array

parent 7dbe599c
......@@ -5,8 +5,11 @@ cd $(readlink -f $(dirname "$BASH_SOURCE"))
versions=( "$@" )
if [ ${#versions[@]} -eq 0 ]; then
versions=( */ )
versions=( "${versions[@]/docker}" ) # Ignore the "docker" dir
for dir in */; do
if [ dir != "docker/" ]; then
versions+=( "$dir" )
fi
done
fi
versions=( "${versions[@]%/}" )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment