diff options
author | Arnstein Ressem <aressem@gmail.com> | 2018-11-05 13:25:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 13:25:11 +0100 |
commit | a3a8c8277ca44ee1bfe4bd13900d3e99d52764c1 (patch) | |
tree | 4003cb066a5a5ad4136bbd525bf3f2d0689ddacd /bootstrap.sh | |
parent | a8cc3048439a6c9d71767dc608fc2541dc954cec (diff) |
Use '-n' to check for non-empty value
Co-Authored-By: gjoranv <gjoranv@gmail.com>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 0f3faa63386..2353154da8d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -29,7 +29,7 @@ get_env_var_with_optional_default() { local var_name=$1 local default_val=$2 eval "existing_value=\${$var_name}" - if [ "$existing_value" ]; then + if [ -n "$existing_value" ]; then echo "$existing_value" elif [ $# -ge 2 ]; then echo "$default_val" |