Skip to content

Commit

Permalink
Update installpsh-<distrofamily>.sh Installers to Handle "preview" in…
Browse files Browse the repository at this point in the history
… version number (#6573)
  • Loading branch information
DarwinJS authored and TravisEz13 committed Apr 6, 2018
1 parent 38c53c5 commit 46fa226
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/installpsh-amazonlinux.sh
Expand Up @@ -155,7 +155,7 @@ $SUDO yum install -y \

echo
echo "*** Installing PowerShell Core for $DistroBasedOn..."
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`
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// | sed s/,//g | sed s/\ //g`

#DIRECT DOWNLOAD
pwshlink=/usr/bin/pwsh
Expand Down
2 changes: 1 addition & 1 deletion tools/installpsh-debian.sh
Expand Up @@ -120,7 +120,7 @@ if ! hash curl 2>/dev/null; then
echo "curl not found, installing..."
$SUDO apt-get install -y curl
fi
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`
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// | sed s/,//g | sed s/\ //g`

echo "*** Current version on git is: $currentversion, repo version may differ slightly..."
echo "*** Setting up PowerShell Core repo..."
Expand Down
2 changes: 1 addition & 1 deletion tools/installpsh-osx.sh
Expand Up @@ -111,7 +111,7 @@ fi

echo "*** Installing PowerShell Core for $DistroBasedOn..."

#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`
#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// | sed s/,//g | sed s/\ //g`

if ! hash brew 2>/dev/null; then
echo "Homebrew is not found, installing..."
Expand Down
2 changes: 1 addition & 1 deletion tools/installpsh-redhat.sh
Expand Up @@ -121,7 +121,7 @@ if ! hash curl 2>/dev/null; then
echo "curl not found, installing..."
$SUDO yum install -y curl
fi
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`
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// | sed s/,//g | sed s/\ //g`

echo "*** Current version on git is: $release, repo version may differ slightly..."

Expand Down
2 changes: 1 addition & 1 deletion tools/installpsh-suse.sh
Expand Up @@ -136,7 +136,7 @@ $SUDO zypper --non-interactive install \

echo
echo "*** Installing PowerShell Core for $DistroBasedOn..."
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`
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// | sed s/,//g | sed s/\ //g`

#REPO BASED (Not ready yet)
#echo "*** Setting up PowerShell Core repo..."
Expand Down

0 comments on commit 46fa226

Please sign in to comment.