Skip to content

Commit

Permalink
fix: added execute permissions to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Steinhäuser committed Nov 27, 2023
1 parent 615af49 commit b8937bb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,18 @@ esac
echo "Installing Helm boostrap plugin for ${os} ${arch}"
url="https://github.com/tagesspiegel/helm-plugin-bootstrap/releases/latest/download/helm-plugin-bootstrap_${os}_${arch}${binExtension}"

mkdir -p "bin"

echo "Downloading from ${url}"
echo "Creating bin directory"

binDir="$(dirname "$0")/bin"
echo "binDir: ${binDir}"

mkdir -p "${binDir}"

# Download with curl if possible.
if [ -x "$(which curl 2>/dev/null)" ]; then
curl -sSL "${url}" -o "bin/bootstrap${binExtension}"
curl -sSL "${url}" -o "${binDir}/bootstrap${binExtension}"
else
wget -q "${url}" -O "bin/bootstrap${binExtension}"
wget -q "${url}" -O "${binDir}/bootstrap${binExtension}"
fi

0 comments on commit b8937bb

Please sign in to comment.