[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

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