Inline bash variables.

Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-11-16 00:32:53 -05:00
parent 0ea3035324
commit 92660f665b
No known key found for this signature in database
2 changed files with 2 additions and 9 deletions

View file

@ -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}")"

View file

@ -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'