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 9eda1ca commit 3ba34ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ 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}"
echo "Downloading from ${url}"
binDir="$(dirname "$0")/bin"
echo "Storing binary in: ${binDir}"

mkdir -p "bin"

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 3ba34ed

Please sign in to comment.