This repository was archived by the owner on Jan 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ function log {
8383 local -r level=" $1 "
8484 local -r message=" $2 "
8585 local -r timestamp=$( date +" %Y-%m-%d %H:%M:%S" )
86- >&2 echo -e " $timestamp [$level ] [$SCRIPT_NAME ] $message "
86+ >&2 echo -e " ${ timestamp} [${ level} ] [$SCRIPT_NAME ] ${ message} "
8787}
8888
8989function log_info {
@@ -131,7 +131,7 @@ function get_instance_ip_address {
131131function assert_is_installed {
132132 local -r name=" $1 "
133133
134- if [[ ! $( command -v $name ) ]]; then
134+ if [[ ! $( command -v ${ name} ) ]]; then
135135 log_error " The binary '$name ' is required by this script but is not installed or in the system's PATH."
136136 exit 1
137137 fi
@@ -145,8 +145,8 @@ function get_vault_version {
145145}
146146
147147function vault_version_at_least {
148- local -r config_path=" $1 "
149- local -r ui_config=" $2 "
148+ local -r config_path=$1
149+ local -r ui_config=$2
150150 VAULT_VERSION=$( get_vault_version)
151151
152152 # This if statement will echo the current vault version and the minimum version required for ui support.
@@ -698,7 +698,7 @@ function run {
698698 fi
699699
700700 if [[ -z " $api_addr " ]]; then
701- api_addr=" https://$( get_instance_ip_address) :$port "
701+ api_addr=" https://$( get_instance_ip_address) :${ port} "
702702 fi
703703
704704 if [[ " $agent " == " false" ]] && [[ " $enable_auto_unseal " == " true" ]]; then
You can’t perform that action at this time.
0 commit comments