Skip to content

Commit

Permalink
installing commands if necessary
Browse files Browse the repository at this point in the history
Signed-off-by: mrk <[email protected]>
  • Loading branch information
marekzan committed Nov 18, 2020
1 parent 66b60fc commit b1357eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/checkHelmVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,18 @@ function updateDockerfileOnNewRelease() {
echo "$triggerNewRelease"
}

checkForCommands() {
if ! command -v $1 &> /dev/null
then
sudo apt install -y "$1"
fi
}

run_main() {

checkForCommands curl
checkForCommands jq

if [[ -z "$1" ]]; then
helmRelease=$(getlatestHelmRelease)
else
Expand Down

0 comments on commit b1357eb

Please sign in to comment.