mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-26 19:34:22 +08:00
Use new cask format (#17064)
This commit is contained in:
parent
72e3d719d8
commit
b6b271c9e9
@ -132,7 +132,7 @@ done
|
|||||||
|
|
||||||
if ! hash pwsh 2>/dev/null; then
|
if ! hash pwsh 2>/dev/null; then
|
||||||
echo "Installing PowerShell..."
|
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
|
echo "ERROR: PowerShell failed to install! Cannot install powershell..." >&2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -142,7 +142,7 @@ fi
|
|||||||
if [[ "'$*'" =~ includeide ]] ; then
|
if [[ "'$*'" =~ includeide ]] ; then
|
||||||
echo "*** Installing VS Code PowerShell IDE..."
|
echo "*** Installing VS Code PowerShell IDE..."
|
||||||
if [[ ! -d $(brew --prefix visual-studio-code) ]]; then
|
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
|
echo "ERROR: Visual Studio Code failed to install..." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user