aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'