From 6ee08ac5223b11e48973f90ef762eeaddbe7481d Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Thu, 2 May 2019 21:13:06 -0700 Subject: [PATCH] update lib --- libraries/util.bash | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/util.bash b/libraries/util.bash index 27a9267..2920ea3 100755 --- a/libraries/util.bash +++ b/libraries/util.bash @@ -1640,8 +1640,15 @@ function deleteSpaces() function displayVersion() { local -r message="${1}" + local -r applicationName="${2}" + + if [[ "$(isEmptyString "${applicationName}")" = 'true' ]] + then + header 'DISPLAYING VERSION' + else + header "DISPLAYING ${applicationName} VERSION" + fi - header 'DISPLAYING VERSION' info "${message}" }