aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-16 23:14:10 -0300
committerEuAndreh <eu@euandre.org>2021-06-16 23:14:10 -0300
commite3c0340ff5d563d560325d66b4257fe1eeb6724d (patch)
tree4acd41b086ab86d3cb5162cff836ad408b3a53e3
parentMakefile: Remove .PHONY target (diff)
downloadpackage-repository-e3c0340ff5d563d560325d66b4257fe1eeb6724d.tar.gz
package-repository-e3c0340ff5d563d560325d66b4257fe1eeb6724d.tar.xz
scripts/paku: Use tr over ${VARIABLE^}
Diffstat (limited to '')
-rwxr-xr-xscripts/paku6
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'