From 651cb93f04384a1d2c89500272b0f3ba938955ab Mon Sep 17 00:00:00 2001 From: Darwin Date: Mon, 1 Oct 2018 04:25:30 -0400 Subject: [PATCH 1/3] fix syntax error for issue 7903 --- tools/installpsh-amazonlinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/installpsh-amazonlinux.sh b/tools/installpsh-amazonlinux.sh index 9d3458e65ce..e131c3866b9 100644 --- a/tools/installpsh-amazonlinux.sh +++ b/tools/installpsh-amazonlinux.sh @@ -168,7 +168,7 @@ if [[ "'$*'" =~ preview ]] ; then else echo "Finding the latest production release" release=$(curl https://api.github.com/repos/PowerShell/PowerShell/releases | grep -Po '"tag_name":(\d*?,|.*?[^\\]",)' | grep -Po '\d+.\d+.\d+[\da-z.-]*' | grep -v '[a-z]' | sort | tail -n1) -if +fi #DIRECT DOWNLOAD package=powershell-${release}-linux-x64.tar.gz From a44c3ca623e9cc7963d720f159262063910f6162 Mon Sep 17 00:00:00 2001 From: Darwin Date: Mon, 1 Oct 2018 04:55:42 -0400 Subject: [PATCH 2/3] add tar and gzip packages --- tools/installpsh-amazonlinux.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/installpsh-amazonlinux.sh b/tools/installpsh-amazonlinux.sh index e131c3866b9..4fde5891843 100644 --- a/tools/installpsh-amazonlinux.sh +++ b/tools/installpsh-amazonlinux.sh @@ -151,6 +151,8 @@ $SUDO yum install -y \ libcurl \ openssl \ libuuid.x86_64 \ + tar \ + gzip \ && yum clean all ##END Check requirements and prerequisites From 35dcd5c2a4c74f0f5eec3e2e7a5bf5837bba165c Mon Sep 17 00:00:00 2001 From: Darwin Date: Tue, 2 Oct 2018 05:58:45 -0400 Subject: [PATCH 3/3] add tar and gzip packages --- tools/installpsh-amazonlinux.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/installpsh-amazonlinux.sh b/tools/installpsh-amazonlinux.sh index 9d3458e65ce..4fde5891843 100644 --- a/tools/installpsh-amazonlinux.sh +++ b/tools/installpsh-amazonlinux.sh @@ -151,6 +151,8 @@ $SUDO yum install -y \ libcurl \ openssl \ libuuid.x86_64 \ + tar \ + gzip \ && yum clean all ##END Check requirements and prerequisites @@ -168,7 +170,7 @@ if [[ "'$*'" =~ preview ]] ; then else echo "Finding the latest production release" release=$(curl https://api.github.com/repos/PowerShell/PowerShell/releases | grep -Po '"tag_name":(\d*?,|.*?[^\\]",)' | grep -Po '\d+.\d+.\d+[\da-z.-]*' | grep -v '[a-z]' | sort | tail -n1) -if +fi #DIRECT DOWNLOAD package=powershell-${release}-linux-x64.tar.gz