mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
Inline bash variables.
Partial #638 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
0ea3035324
commit
92660f665b
2 changed files with 2 additions and 9 deletions
|
@ -147,8 +147,7 @@ EOF
|
|||
|
||||
# Fix filename
|
||||
for os in "${OS_NAMES[@]}"; do
|
||||
new_filename="mas-${MAS_VERSION}.${os}.bottle.tar.gz"
|
||||
cp -v "${OLD_FILENAME}" "${BOTTLE_DIR}/${new_filename}"
|
||||
cp -v "${OLD_FILENAME}" "${BOTTLE_DIR}/mas-${MAS_VERSION}.${os}.bottle.tar.gz"
|
||||
|
||||
# Append each os
|
||||
# BOTTLE_BLOCK="$(printf "${BOTTLE_BLOCK}\n sha256 cellar: :any_skip_relocation, %-15s %s" "${os}:" "${SHA256}")"
|
||||
|
|
|
@ -17,9 +17,6 @@ if ! cd -- "${mas_dir}"; then
|
|||
fi
|
||||
|
||||
CORE_TAP_PATH="$(brew --repo homebrew/core)"
|
||||
CORE_MAS_FORMULA_FILE="${CORE_TAP_PATH}/Formula/m/mas.rb"
|
||||
|
||||
LOCAL_MAS_FORMULA_PATH=Homebrew/mas.rb
|
||||
|
||||
function usage {
|
||||
echo 'Usage: brew_core_update [-d] [<version_tag> [<sha1_hash>]]'
|
||||
|
@ -93,7 +90,7 @@ brew update
|
|||
#
|
||||
|
||||
# Update mas formula in core (temporary)
|
||||
cp -v "${LOCAL_MAS_FORMULA_PATH}" "${CORE_MAS_FORMULA_FILE}"
|
||||
cp -v Homebrew/mas.rb "${CORE_TAP_PATH}/Formula/m/mas.rb"
|
||||
|
||||
# Install mas from source
|
||||
# HOMEBREW_NO_INSTALL_FROM_API:
|
||||
|
@ -120,9 +117,6 @@ popd
|
|||
# Update Homebrew
|
||||
#
|
||||
|
||||
# echo 'Checking to see if this update can be a simple bump.'
|
||||
# diff "${LOCAL_MAS_FORMULA_PATH}" "${CORE_MAS_FORMULA_FILE}"
|
||||
|
||||
echo "==> 🧪 Updating homebrew-core formula mas (${MAS_VERSION}, ${REVISION})"
|
||||
|
||||
echo 'Validating formula'
|
||||
|
|
Loading…
Reference in a new issue