mas/script/brew_build_interactive
Ross Goldberg 6b1903cde9
cd into root of mas project at beginning of every bash script.
Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-16 14:47:22 -05:00

18 lines
380 B
Bash
Executable file

#!/bin/bash -e
#
# script/brew_build_interactive
# mas
#
# https://docs.brew.sh/Formula-Cookbook#check-the-build-system
#
mas_dir="$(readlink -fn "$(dirname "${BASH_SOURCE:-"${0}"}")/..")"
if ! cd -- "${mas_dir}"; then
printf $'Error: Could not cd into mas directory: %s\n' "${mas_dir}" >&2
exit 1
fi
HOMEBREW_NO_INSTALL_FROM_API=1 \
brew reinstall \
--interactive mas