Skip to content

Commit

Permalink
Another fix linked to OS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe VILA authored Jul 17, 2020
1 parent b788702 commit 945927b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/install_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ else
wget -q "${url}" -O "releases/v${version}.tar.gz"
fi
tar xzf "releases/v${version}.tar.gz" -C "releases/v${version}"
mv "releases/v${version}/bin/helm-spray" "bin/helm-spray" || \
mv "releases/v${version}/bin/helm-spray.exe" "bin/helm-spray"
if [ "${os}" == "Linux" ] ; then
mv "releases/v${version}/bin/helm-spray" "bin/helm-spray"
else
mv "releases/v${version}/bin/helm-spray.exe" "bin/helm-spray.exe"
fi
mv "releases/v${version}/plugin.yaml" .
mv "releases/v${version}/README.md" .
mv "releases/v${version}/LICENSE" .

0 comments on commit 945927b

Please sign in to comment.