Ffixing syntax error in installpwsh-amazonlinux.sh (#7905)

* Fix syntax error for issue 7903. Typo come from #6849 

* Add identation after copyright message
This commit is contained in:
Darwin
2018-10-01 14:58:14 +05:00
committed by Ilya
parent 39252b4938
commit 4dae2825e1
+3 -1
View File
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#Companion code for the blog https://cloudywindows.com
#call this code direction from the web with:
@@ -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