8000 Update install scripts with minor fixes targeting macOS · PowerShell/PowerShell@ece7b44 · GitHub
[go: up one dir, main page]

Skip to content

Commit ece7b44

Browse files
DarwinJSTravisEz13
authored andcommitted
Update install scripts with minor fixes targeting macOS
Fixes #4617 Fixes #4511 Change VS code install to use cask Change OSX to use curl Update version number by point release.
1 parent cdbbb7a commit ece7b44

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tools/install-powershell.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution
2323

24-
VERSION="1.1.0"
24+
VERSION="1.1.1"
2525
gitreposubpath="PowerShell/PowerShell/master"
2626
gitreposcriptroot="https://raw.githubusercontent.com/$gitreposubpath/tools"
2727
gitscriptname="install-powershell.psh"
@@ -139,7 +139,11 @@ elif [ "$DistroBasedOn" == "redhat" ] || [ "$DistroBasedOn" == "debian" ] || [ "
139139
#Script files are not local - pull from remote
140140
echo "Could not find \"installpsh-$DistroBasedOn.sh\" next to this script..."
141141
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
143147
fi
144148
else
145149
echo "Sorry, your operating system is based on $DistroBasedOn and is not supported by PowerShell Core or this installer at this time."

tools/installpsh-osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fi
154154
if [[ "'$*'" =~ includeide ]] ; then
155155
echo "\n*** Installing VS Code PowerShell IDE..."
156156
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
158158
echo "ERROR: Visual Studio Code failed to install..." >&2
159159
exit 1
160160
fi

0 commit comments

Comments
 (0)
0