Skip to content

Commit 8c66e96

Browse files
[macos] use brew_smart_install where appropriate (#8607)
1 parent a1ef070 commit 8c66e96

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash -e -o pipefail
22

3-
brew install httpd
3+
source ~/utils/utils.sh
4+
5+
brew_smart_install httpd
46
sudo sed -Ei '' 's/Listen .*/Listen 80/' $(brew --prefix)/etc/httpd/httpd.conf
57

68
invoke_tests "WebServers" "Apache"

images/macos/provision/core/aws.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sudo installer -pkg /tmp/AWSCLIV2.pkg -target /
88

99
echo Installing aws sam cli...
1010
brew tap aws/tap
11-
brew install aws-sam-cli
11+
brew_smart_install aws-sam-cli
1212

1313
echo "Install aws cli session manager"
1414
brew install --cask session-manager-plugin

images/macos/provision/core/azcopy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ arch=$(get_arch)
44

55
# Check MacOS architecture and if ARM install using brew
66
if [ $arch == "arm64" ]; then
7-
brew install azcopy
7+
brew_smart_install azcopy
88
else
99
AZCOPY_DOWNLOAD_URL="https://aka.ms/downloadazcopy-v10-mac"
1010

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash -e -o pipefail
22

3+
source ~/utils/utils.sh
4+
35
echo Installing bicep cli...
46
brew tap azure/bicep
5-
brew install bicep
7+
brew_smart_install bicep
68

79
invoke_tests "Common" "Bicep"

images/macos/provision/core/homebrew.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ brew analytics off
2727

2828
# jq is required for further installation scripts
2929
echo "Installing jq..."
30-
brew install jq
30+
brew_smart_install jq
3131

3232
echo "Installing curl..."
33-
brew install curl
33+
brew_smart_install curl
3434

3535
echo "Installing wget..."
3636
brew_smart_install "wget"
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash -e -o pipefail
22

3-
brew install nginx
3+
source ~/utils/utils.sh
4+
5+
brew_smart_install nginx
46
sudo sed -Ei '' 's/listen.*/listen 80;/' $(brew --prefix)/etc/nginx/nginx.conf
57

68
invoke_tests "WebServers" "Nginx"

0 commit comments

Comments
 (0)