Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit c3bd168

Browse files
reviex: reverted variable format changes
1 parent 96d7035 commit c3bd168

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/run-vault/run-vault

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

8989
function log_info {
@@ -131,7 +131,7 @@ function get_instance_ip_address {
131131
function 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

147147
function 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

0 commit comments

Comments
 (0)