Skip to content

Commit

Permalink
Merge pull request #72 from Elassyo/install-script-sh-fix
Browse files Browse the repository at this point in the history
Make scripts/install_plugin POSIX sh compliant
  • Loading branch information
Christophe VILA authored Feb 3, 2021
2 parents 4562ec4 + fa860f8 commit 4132e47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ os=$(uname)
echo "Downloading and installing spray v${version} for ${os}..."

url=""
if [ "${os}" == "Linux" ] ; then
if [ "${os}" = "Linux" ] ; then
url="https://github.com/ThalesGroup/helm-spray/releases/download/v${version}/helm-spray-linux-amd64.tar.gz"
elif [ "${os}" == "Darwin" ] ; then
elif [ "${os}" = "Darwin" ] ; then
url="https://github.com/ThalesGroup/helm-spray/releases/download/v${version}/helm-spray-darwin-amd64.tar.gz"
else
url="https://github.com/ThalesGroup/helm-spray/releases/download/v${version}/helm-spray-windows-amd64.tar.gz"
Expand All @@ -25,7 +25,7 @@ else
wget -q "${url}" -O "releases/v${version}.tar.gz"
fi
tar xzf "releases/v${version}.tar.gz" -C "releases/v${version}"
if [ "${os}" == "Linux" ] || [ "${os}" == "Darwin" ] ; then
if [ "${os}" = "Linux" ] || [ "${os}" = "Darwin" ] ; then
mv "releases/v${version}/bin/helm-spray" "bin/helm-spray"
else
mv "releases/v${version}/bin/helm-spray.exe" "bin/helm-spray.exe"
Expand Down

0 comments on commit 4132e47

Please sign in to comment.