Update installpsh-<distrofamily>.sh Installers to Handle "preview" in version number (#6573)
This commit is contained in:
parent
38c53c50a6
commit
46fa2260a8
@ -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
|
||||
|
@ -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..."
|
||||
|
@ -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..."
|
||||
|
@ -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..."
|
||||
|
||||
|
@ -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..."
|
||||
|
Loading…
Reference in New Issue
Block a user