Use new cask format (#17064)

This commit is contained in:
Tyler James Leonhardt 2022-03-25 11:22:07 -07:00 committed by GitHub
parent 72e3d719d8
commit b6b271c9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ done
if ! hash pwsh 2>/dev/null; then
echo "Installing PowerShell..."
if ! brew cask install ${powershellpackageid}; then
if ! brew install ${powershellpackageid} --cask; then
echo "ERROR: PowerShell failed to install! Cannot install powershell..." >&2
fi
else
@ -142,7 +142,7 @@ fi
if [[ "'$*'" =~ includeide ]] ; then
echo "*** Installing VS Code PowerShell IDE..."
if [[ ! -d $(brew --prefix visual-studio-code) ]]; then
if ! brew cask install visual-studio-code; then
if ! brew install visual-studio-code --cask; then
echo "ERROR: Visual Studio Code failed to install..." >&2
exit 1
fi