diff options
author | EuAndreh <eu@euandre.org> | 2021-06-16 23:14:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-16 23:14:10 -0300 |
commit | e3c0340ff5d563d560325d66b4257fe1eeb6724d (patch) | |
tree | 4acd41b086ab86d3cb5162cff836ad408b3a53e3 /scripts/paku | |
parent | Makefile: Remove .PHONY target (diff) | |
download | package-repository-e3c0340ff5d563d560325d66b4257fe1eeb6724d.tar.gz package-repository-e3c0340ff5d563d560325d66b4257fe1eeb6724d.tar.xz |
scripts/paku: Use tr over ${VARIABLE^}
Diffstat (limited to 'scripts/paku')
-rwxr-xr-x | scripts/paku | 6 |
1 files changed, 3 insertions, 3 deletions
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 <<EOF >>"$HOMEBREW_OUT" -class ${NAME^}$SUFFIX_UC < Formula +class ${NAME_UC}$SUFFIX_UC < Formula desc '$DESCRIPTION' homepage 'https://$NAME.euandreh.xyz' url '$TARBALL_URL' |