Skip to content

Commit dd96fe1

Browse files
authored
fix: brace config variable expansion (#3242)
1 parent f0a89ca commit dd96fe1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

addons/clickhouse/dataprotection/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ EOF
237237

238238
function getToolConfigValue() {
239239
local var=$1
240-
cat $toolConfig | grep "$var[[:space:]]*=" | awk '{print $NF}'
240+
cat $toolConfig | grep "${var}[[:space:]]*=" | awk '{print $NF}'
241241
}
242242

243243
function configure_clickhouse_backup_custom_storage_if_encrypted() {

addons/nebula/dataprotection/br-backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trap handle_exit EXIT
1616

1717
function getToolConfigValue() {
1818
local var=$1
19-
cat $toolConfig | grep "$var[[:space:]]*=" | awk '{print $NF}'
19+
cat $toolConfig | grep "${var}[[:space:]]*=" | awk '{print $NF}'
2020
}
2121

2222
access_key_id=$(getToolConfigValue access_key_id)

0 commit comments

Comments
 (0)