You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commented out check for sudo as it was failing on Travis-CI
Updated version of Ruby to 2.3.3
Reorder install so Ruby gets installed before installing PS as Homebrew relies on Ruby 2.3
Remove sudo check which breaks Travis-CI
Copy file name to clipboardExpand all lines: tools/installpsh-osx.sh
+19-20Lines changed: 19 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,10 @@ thisinstallerdistro=osx
25
25
repobased=true
26
26
gitscriptname="installpsh-osx.sh"
27
27
28
-
echo"\n*** PowerShell Core Development Environment Installer $VERSION for $thisinstallerdistro"
28
+
echo"*** PowerShell Core Development Environment Installer $VERSION for $thisinstallerdistro"
29
29
echo"*** Current PowerShell Core Version: $currentpshversion"
30
30
echo"*** Original script is at: $gitreposcriptroot/$gitscriptname"
31
-
echo"\n*** Arguments used: $* \n\n"
31
+
echo"*** Arguments used: $*"
32
32
33
33
# Let's quit on interrupt of subcommands
34
34
trap'
@@ -93,14 +93,13 @@ if (( $EUID != 0 )); then
93
93
fi
94
94
95
95
#Check that sudo is available
96
-
if [[ "$SUDO"-eq"sudo" ]];then
97
-
98
-
$SUDO -v
99
-
if [ $?-ne 0];then
100
-
echo"ERROR: You must either be root or be able to use sudo">&2
101
-
exit 5
102
-
fi
103
-
fi
96
+
#if [[ "$SUDO" -eq "sudo" ]]; then
97
+
# $SUDO -v
98
+
# if [ $? -ne 0 ]; then
99
+
# echo "ERROR: You must either be root or be able to use sudo" >&2
100
+
# exit 5
101
+
# fi
102
+
#fi
104
103
105
104
#END Collect any variation details if required for this distro
106
105
@@ -110,7 +109,7 @@ fi
110
109
111
110
##END Check requirements and prerequisites
112
111
113
-
echo"\n*** Installing PowerShell Core for $DistroBasedOn..."
112
+
echo"*** Installing PowerShell Core for $DistroBasedOn..."
114
113
115
114
#release=`curl https://api.github.com/repos/powershell/powershell/releases/latest | sed '/tag_name/!d' | sed s/\"tag_name\"://g | sed s/\"//g | sed s/v//g | sed s/,//g | sed s/\ //g`
116
115
@@ -126,6 +125,13 @@ if ! hash brew 2>/dev/null; then
0 commit comments