File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
# gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution
23
23
24
- VERSION=" 1.1.0 "
24
+ VERSION=" 1.1.1 "
25
25
gitreposubpath=" PowerShell/PowerShell/master"
26
26
gitreposcriptroot=" https://raw.githubusercontent.com/$gitreposubpath /tools"
27
27
gitscriptname=" install-powershell.psh"
@@ -139,7 +139,11 @@ elif [ "$DistroBasedOn" == "redhat" ] || [ "$DistroBasedOn" == "debian" ] || [ "
139
139
# Script files are not local - pull from remote
140
140
echo " Could not find \" installpsh-$DistroBasedOn .sh\" next to this script..."
141
141
echo " Pulling it from \" $gitreposcriptroot /installpsh-$DistroBasedOn .sh\" "
142
- bash <( wget -qO- $gitreposcriptroot /installpsh-$DistroBasedOn .sh) $@
142
+ if [ " $OS " == " osx" ]; then
143
+ bash <( curl -s $gitreposcriptroot /installpsh-$DistroBasedOn .sh) $@
144
+ else
145
+ bash <( wget -qO- $gitreposcriptroot /installpsh-$DistroBasedOn .sh) $@
146
+ fi
143
147
fi
144
148
else
145
149
echo " Sorry, your operating system is based on $DistroBasedOn and is not supported by PowerShell Core or this installer at this time."
Original file line number Diff line number Diff line change 154
154
if [[ " '$* '" =~ includeide ]] ; then
155
155
echo " \n*** Installing VS Code PowerShell IDE..."
156
156
if [[ ! -d $( brew --prefix visual-studio-code) ]]; then
157
- if ! brew install visual-studio-code; then
157
+ if ! brew cask install visual-studio-code; then
158
158
echo " ERROR: Visual Studio Code failed to install..." >&2
159
159
exit 1
160
160
fi
You can’t perform that action at this time.
0 commit comments