From e3c0340ff5d563d560325d66b4257fe1eeb6724d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 16 Jun 2021 23:14:10 -0300 Subject: scripts/paku: Use tr over ${VARIABLE^} --- scripts/paku | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/paku b/scripts/paku index 374ff2c..69b225a 100755 --- a/scripts/paku +++ b/scripts/paku @@ -167,9 +167,9 @@ gen_homebrew() { for p in $(jq -r '.packages[] | @base64' < paku.json); do HOMEBREW_OUT="$(mktemp)" NAME="$(echo "$p" | base64 --decode | jq -r '.name')" + NAME_UC="$(echo "$NAME" | tr '[:lower:]' '[:upper:]')" SUFFIX="$(echo "$p" | base64 --decode | jq -r '.suffix')" - SUFFIX_UC="$(echo "$SUFFIX" | cut -c2-)" - SUFFIX_UC="${SUFFIX_UC^}" + SUFFIX_UC="$(echo "$SUFFIX" | cut -c2- | tr '[:lower:]' '[:upper:]')" VERSION="$(echo "$p" | base64 --decode | jq -r '.version')" TYPE="$(echo "$p" | base64 --decode | jq -r '.type')" @@ -202,7 +202,7 @@ gen_homebrew() { fi cat <>"$HOMEBREW_OUT" -class ${NAME^}$SUFFIX_UC < Formula +class ${NAME_UC}$SUFFIX_UC < Formula desc '$DESCRIPTION' homepage 'https://$NAME.euandreh.xyz' url '$TARBALL_URL' -- cgit v1.2.3