Skip to content

Commit

Permalink
[tui/common] Replace '@l' by ',,', fixes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Dec 22, 2023
1 parent b376ab7 commit f9a64e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tui/language.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ for language in "${available_languages[@]}"; do
fi
done

# Retrieve language and make it lower case with "@L"
# Retrieve language and make it lower case with ",,"
language=$(whiptail "${whiptail_args[@]}" 3>&1 1>&2 2>&3)
language="${language@L}"
language="${language,,}"

if [ -z "$language" ]; then
exit 0
Expand Down
2 changes: 1 addition & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function download_yq() {
arch="$(uname -m | sed s/aarch64/arm64/g | sed s/x86_64/amd64/g 2>>"$LOG_FILE")"
kernel="$(uname -s 2>>"$LOG_FILE")"

curl -s -f -L "$YQ_URL/yq_${kernel@L}_$arch" -o "$YQ_BINARY_PATH" &>>"$LOG_FILE"
curl -s -f -L "$YQ_URL/yq_${kernel,,}_$arch" -o "$YQ_BINARY_PATH" &>>"$LOG_FILE"
chmod 0755 "$YQ_BINARY_PATH" &>>"$LOG_FILE"
}

Expand Down

0 comments on commit f9a64e4

Please sign in to comment.