Skip to content

Commit dd02688

Browse files
Update tools/install/_common.sh
Co-authored-by: George Yermulnik (Georgii Iermulnik) <yz@yz.kiev.ua>
1 parent 43bf759 commit dd02688

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/install/_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ readonly TOOL=${TOOL%%.*}
1616
[[ -f /.env ]] && source /.env
1717
env_var_name="${TOOL//-/_}"
1818
# `${var^^}` is bash 4+ only; macOS ships bash 3.2 by default.
19-
env_var_name="$(printf '%s' "$env_var_name" | tr '[:lower:]' '[:upper:]')_VERSION"
19+
env_var_name="$(tr '[:lower:]' '[:upper:]' <<< "${env_var_name}_VERSION")"
2020
# shellcheck disable=SC2034 # Used in other scripts
2121
readonly VERSION="${!env_var_name}"
2222

0 commit comments

Comments
 (0)