fix unbound variable in post_push

This commit is contained in:
Min RK
2019-03-28 13:00:09 +01:00
parent 6a4900c468
commit 8c8e26802a

View File

@@ -12,7 +12,7 @@ function get_hub_version() {
split=( ${hub_xyz//./ } )
hub_xy="${split[0]}.${split[1]}"
# add .dev on hub_xy so it's 1.0.dev
if [[ ! -z "${split[3]}" ]]; then
if [[ ! -z "${split[3]:-}" ]]; then
hub_xy="${hub_xy}.${split[3]}"
fi
}