mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
fix: cleanup macOS packaging
Don't allow specifying target Add `set -e` to shell scripts Don't try and package on every PR Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
72b3348fb1
commit
f6a9980e49
3
.github/workflows/build-pkg.yml
vendored
3
.github/workflows/build-pkg.yml
vendored
@ -4,9 +4,6 @@ on:
|
||||
paths:
|
||||
- .github/workflows/build-pkg.yml
|
||||
- package/scripts
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# verify the files exist
|
||||
tmp_brew="$2"
|
||||
@ -8,9 +9,7 @@ if [[ ! -d "${tmp_brew:?}" ]]; then
|
||||
fi
|
||||
|
||||
# pick the correct target
|
||||
if [[ "$3" != "/" ]]; then
|
||||
target=$3
|
||||
elif [[ $(uname -m) == "x86_64" ]];then
|
||||
if [[ $(uname -m) == "x86_64" ]];then
|
||||
target="/usr/local"
|
||||
else
|
||||
target="/opt/Homebrew"
|
||||
|
Loading…
x
Reference in New Issue
Block a user