[macOS] brew --cask option fix. (#2325)

* [macOS] brew --cask option fix.

* removed curl from HS

* return curl back
This commit is contained in:
Darii Nurgaleev
2020-12-22 14:48:31 +07:00
committed by GitHub
parent 9da3c0764a
commit 0d93dd2fc9
9 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
source ~/utils/invoke-tests.sh source ~/utils/invoke-tests.sh
echo "install soundflower" echo "install soundflower"
brew cask install soundflower brew install --cask soundflower
echo "install switchaudio-osx" echo "install switchaudio-osx"
brew install switchaudio-osx brew install switchaudio-osx

View File

@@ -13,6 +13,6 @@ brew tap aws/tap
brew install aws-sam-cli brew install aws-sam-cli
echo "Install aws cli session manager" echo "Install aws cli session manager"
brew cask install session-manager-plugin brew install --cask session-manager-plugin
invoke_tests "Common" "AWS" invoke_tests "Common" "AWS"

View File

@@ -6,7 +6,7 @@ echo "Installing Chrome..."
brew_cask_install_ignoring_sha256 "google-chrome" brew_cask_install_ignoring_sha256 "google-chrome"
echo "Installing Chrome Driver" echo "Installing Chrome Driver"
brew cask install chromedriver brew install --cask chromedriver
echo "Installing Selenium" echo "Installing Selenium"
brew install selenium-server-standalone brew install selenium-server-standalone

View File

@@ -53,7 +53,7 @@ fi
for package in ${bcask_common_utils[@]}; do for package in ${bcask_common_utils[@]}; do
echo "Install $package" echo "Install $package"
brew cask install $package brew install --cask $package
done done
# Invoke bazel to download the latest bazel version via bazelisk # Invoke bazel to download the latest bazel version via bazelisk

View File

@@ -3,7 +3,7 @@ source ~/utils/utils.sh
source ~/utils/invoke-tests.sh source ~/utils/invoke-tests.sh
echo "Installing Microsoft Edge..." echo "Installing Microsoft Edge..."
brew cask install microsoft-edge brew install --cask microsoft-edge
EDGE_INSTALLATION_PATH="/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge" EDGE_INSTALLATION_PATH="/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"
EDGE_VERSION=$("$EDGE_INSTALLATION_PATH" --version | cut -d' ' -f 3) EDGE_VERSION=$("$EDGE_INSTALLATION_PATH" --version | cut -d' ' -f 3)

View File

@@ -2,7 +2,7 @@
source ~/utils/invoke-tests.sh source ~/utils/invoke-tests.sh
echo "Installing Firefox..." echo "Installing Firefox..."
brew cask install firefox brew install --cask firefox
echo "Installing Geckodriver..." echo "Installing Geckodriver..."
brew install geckodriver brew install geckodriver

View File

@@ -37,7 +37,7 @@ do
if [[ $JAVA_VERSION == "7" ]]; then if [[ $JAVA_VERSION == "7" ]]; then
installAzulJDK "https://cdn.azul.com/zulu/bin/zulu7.42.0.51-ca-jdk7.0.285-macosx_x64.dmg" installAzulJDK "https://cdn.azul.com/zulu/bin/zulu7.42.0.51-ca-jdk7.0.285-macosx_x64.dmg"
else else
brew cask install "adoptopenjdk${JAVA_VERSION}" brew install --cask "adoptopenjdk${JAVA_VERSION}"
fi fi
createEnvironmentVariable "JAVA_HOME_${JAVA_VERSION}_X64" $JAVA_VERSION createEnvironmentVariable "JAVA_HOME_${JAVA_VERSION}_X64" $JAVA_VERSION
done done

View File

@@ -7,7 +7,7 @@ echo Installing Azure CLI...
brew install azure-cli brew install azure-cli
echo Installing PowerShell... echo Installing PowerShell...
brew cask install powershell brew install --cask powershell
# A dummy call of `az` to initialize ~/.azure directory before the modules are installed # A dummy call of `az` to initialize ~/.azure directory before the modules are installed
az -v az -v

View File

@@ -104,7 +104,7 @@ brew_cask_install_ignoring_sha256() {
chmod a+w "$CASK_DIR/$TOOL_NAME.rb" chmod a+w "$CASK_DIR/$TOOL_NAME.rb"
SHA=$(grep "sha256" "$CASK_DIR/$TOOL_NAME.rb" | awk '{print $2}') SHA=$(grep "sha256" "$CASK_DIR/$TOOL_NAME.rb" | awk '{print $2}')
sed -i '' "s/$SHA/:no_check/" "$CASK_DIR/$TOOL_NAME.rb" sed -i '' "s/$SHA/:no_check/" "$CASK_DIR/$TOOL_NAME.rb"
brew cask install $TOOL_NAME brew install --cask $TOOL_NAME
pushd $CASK_DIR pushd $CASK_DIR
git checkout HEAD -- "$TOOL_NAME.rb" git checkout HEAD -- "$TOOL_NAME.rb"
popd popd