Skip to content

Instantly share code, notes, and snippets.

@sarvsav
Created April 15, 2023 20:57
Show Gist options
  • Save sarvsav/023e3af3396e8c4a0d10ca3aa55d2754 to your computer and use it in GitHub Desktop.
Save sarvsav/023e3af3396e8c4a0d10ca3aa55d2754 to your computer and use it in GitHub Desktop.
Installing packages to bin directory
## Create a bin directory in your home directory, if not exists
mkdir -p ~/bin
## find the url for latest version of the hadolint
latest_hadolint=$(curl -sL https://api.github.com/repos/hadolint/hadolint/releases/latest | jq -r '.assets[].browser_download_url' | grep -i windows | grep -iv 256)
## Download the hadolint binary to the bin directory
curl -sL $latest_hadolint -o ~/bin/hadolint.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment