mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
rm download
This commit is contained in:
27
download.sh
27
download.sh
@@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Downloading Kubescape..."
|
||||
echo
|
||||
|
||||
osName=$(uname -s)
|
||||
if [[ $osName == *"MINGW"* ]]; then
|
||||
osName=windows-latest
|
||||
elif [[ $osName == *"Darwin"* ]]; then
|
||||
osName=macos-latest
|
||||
else
|
||||
osName=ubuntu-latest
|
||||
fi
|
||||
|
||||
GITHUB_OWNER=armosec
|
||||
|
||||
DOWNLOAD_URL=$(curl --silent "https://api.github.com/repos/$GITHUB_OWNER/kubescape/releases/latest" | grep -o "browser_download_url.*${osName}.*")
|
||||
DOWNLOAD_URL=${DOWNLOAD_URL//\"}
|
||||
DOWNLOAD_URL=${DOWNLOAD_URL/browser_download_url: /}
|
||||
|
||||
KUBESCAPE_EXEC=kubescape
|
||||
|
||||
curl --progress-bar -L $DOWNLOAD_URL -o $KUBESCAPE_EXEC
|
||||
echo -e "\033[32m[V] Downloaded Kubescape"
|
||||
|
||||
chmod +x $KUBESCAPE_EXEC || sudo chmod +x $KUBESCAPE_EXEC
|
||||
Reference in New Issue
Block a user