Created
April 15, 2023 20:57
-
-
Save sarvsav/023e3af3396e8c4a0d10ca3aa55d2754 to your computer and use it in GitHub Desktop.
Installing packages to bin directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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