fix: homebrew permissions on macOS (hopefully)
All checks were successful
Deploy Website / deploy-website (push) Successful in 40s
Publish kewt-git to AUR / publish-aur-git (push) Successful in 20s
Release Standalone Builder / build (release) Successful in 26s
Release Standalone Builder / publish-aur (release) Successful in 20s
Release Standalone Builder / publish-homebrew (release) Successful in 7s
All checks were successful
Deploy Website / deploy-website (push) Successful in 40s
Publish kewt-git to AUR / publish-aur-git (push) Successful in 20s
Release Standalone Builder / build (release) Successful in 26s
Release Standalone Builder / publish-aur (release) Successful in 20s
Release Standalone Builder / publish-homebrew (release) Successful in 7s
This commit is contained in:
@@ -8,6 +8,7 @@ class Kewt < Formula
|
|||||||
|
|
||||||
def install
|
def install
|
||||||
bin.install "kewt"
|
bin.install "kewt"
|
||||||
|
chmod 0755, bin/"kewt"
|
||||||
generate_completions_from_executable(bin/"kewt", "--dump-zsh-completions", shells: [:zsh])
|
generate_completions_from_executable(bin/"kewt", "--dump-zsh-completions", shells: [:zsh])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ tmpdir=$(mktemp -d "/tmp/kewt.XXXXXX")
|
|||||||
trap 'rm -rf "$tmpdir"' EXIT HUP INT TERM
|
trap 'rm -rf "$tmpdir"' EXIT HUP INT TERM
|
||||||
|
|
||||||
# Extract payload
|
# 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
|
# Pass control to the extracted script
|
||||||
KEWT_INVOKED_AS="$0" "$tmpdir/kewt.sh" "$@"
|
KEWT_INVOKED_AS="$0" sh "$tmpdir/kewt.sh" "$@"
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
#==PAYLOAD==
|
#==PAYLOAD==
|
||||||
|
|||||||
Reference in New Issue
Block a user