Skip to content

Commit

Permalink
Replace bash test with [[ ]].
Browse files Browse the repository at this point in the history
Partial mas-cli#638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
  • Loading branch information
rgoldberg committed Nov 16, 2024
1 parent ce6b22d commit 6f61583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/bottle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ brew install --build-bottle mas-cli/tap/mas

# Generate bottle do block, dropping last 2 lines
brew bottle --verbose --no-rebuild --root-url="${ROOT_URL}" mas-cli/tap/mas
if ! test -e "${OLD_FILENAME}"; then
if [[ ! -e "${OLD_FILENAME}" ]]; then
echo "Bottle not found: ${OLD_FILENAME}"
echo "If an old version is showing in the log and filename, then make sure the formula has been updated in:"
echo "${CORE_TAP_PATH}"
Expand Down
2 changes: 1 addition & 1 deletion script/install
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RELEASE=".build/${ARCH}-apple-macosx/release"
MAS_VERSION="$(script/version)"
PREFIX=/usr/local

while test -n "${1}"; do
while [[ -n "${1}" ]]; do
if [[ "${1}" == '--universal' ]]; then
ARCH=universal
RELEASE=.build/release
Expand Down

0 comments on commit 6f61583

Please sign in to comment.