Initial commit.
This commit is contained in:
commit
38c0b98fa8
8 changed files with 199 additions and 0 deletions
37
bin/arkade-install.sh
Executable file
37
bin/arkade-install.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
# TOOLS LIST
|
||||
ARKADE_APPS="argocd argocd-autopilot k3d kubectl sops tofu"
|
||||
|
||||
# Add the arkade binary directory to the path if missing
|
||||
case ":${PATH}:" in
|
||||
*:"${HOME}/.arkade/bin":*) ;;
|
||||
*) export PATH="${PATH}:${HOME}/.arkade/bin" ;;
|
||||
esac
|
||||
|
||||
# Install or update arkade
|
||||
if command -v arkade >/dev/null; then
|
||||
echo "Trying to update the arkade application"
|
||||
sudo arkade update
|
||||
else
|
||||
echo "Installing the arkade application"
|
||||
curl -sLS https://get.arkade.dev | sudo sh
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Installing tools with arkade"
|
||||
echo ""
|
||||
for app in $ARKADE_APPS; do
|
||||
app_path="$(command -v $app)" || true
|
||||
if [ "$app_path" ]; then
|
||||
echo "The application '$app' already available on '$app_path'"
|
||||
else
|
||||
arkade get "$app"
|
||||
fi
|
||||
done
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Add the ~/.arkade/bin directory to your PATH if tools have been installed there
|
||||
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue