Skip to content

Commit

Permalink
Fixed illegal character in install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
shyiko committed Jul 22, 2016
1 parent 336c18e commit 3ee4705
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ echo ""

mkdir -Force $jabbaDir/bin | Out-Null

(wget https://github.com/shyiko/jabba/releases/download/$jabbaVersion/jabba-$jabbaVersion-windows-amd64.exe -UseBasicParsing).Content > $jabbaDir/bin/jabba.exe
If ($env:JABBA_MAKE_INSTALL -eq "true")
{
cp jabba.exe $jabbaDir/bin
}
else
{
(wget https://github.com/shyiko/jabba/releases/download/$jabbaVersion/jabba-$jabbaVersion-windows-amd64.exe -UseBasicParsing).Content > $jabbaDir/bin/jabba.exe
}

$ErrorActionPreference="SilentlyContinue"
& $jabbaDir\bin\jabba.exe --version | Out-Null
Expand Down Expand Up @@ -54,7 +61,7 @@ $sourceJabba="if (Test-Path `"$jabbaDir\jabba.ps1`") { . `"$jabbaDir\jabba.ps1`"

if (-not $(Test-Path $profile))
{
New-Item -path $profile -type file force | Out-Null
New-Item -path $profile -type file -force | Out-Null
}

if ("$(cat $profile | Select-String "\\jabba.ps1")" -eq "")
Expand All @@ -67,6 +74,8 @@ else
echo "Skipped update of $profile (source string already present)"
}

. "$jabbaDir\jabba.ps1"

echo ""
echo "Installation completed`
(if you have any problems please report them at https://github.com/shyiko/jabba/issue)"

0 comments on commit 3ee4705

Please sign in to comment.