1
0
forked from N0VA/kewt

fix: homebrew permissions on macOS (hopefully)

This commit is contained in:
2026-05-12 21:00:19 +02:00
parent e3bf598dd9
commit 8b760b2897
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ class Kewt < Formula
def install
bin.install "kewt"
chmod 0755, bin/"kewt"
generate_completions_from_executable(bin/"kewt", "--dump-zsh-completions", shells: [:zsh])
end

View File

@@ -17,10 +17,10 @@ tmpdir=$(mktemp -d "/tmp/kewt.XXXXXX")
trap 'rm -rf "$tmpdir"' EXIT HUP INT TERM
# Extract payload
sed '1,/^#==PAYLOAD==$/d' "$0" | tar -xz -C "$tmpdir"
LC_ALL=C sed '1,/^#==PAYLOAD==$/d' "$0" | tar -xz -C "$tmpdir"
# Pass control to the extracted script
KEWT_INVOKED_AS="$0" "$tmpdir/kewt.sh" "$@"
KEWT_INVOKED_AS="$0" sh "$tmpdir/kewt.sh" "$@"
exit $?
#==PAYLOAD==