Skip to content

simple bash install script to fetch a sh/bash formatter

License

Notifications You must be signed in to change notification settings

chiefbiiko/shfmt-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shfmt-install

ci

Tiny sh script that installs the shfmt binary for linux_x86_64 or darwin_x86_64. Please pull request to support more!

Usage

install.sh sets up a shfmt executable in the directory indicated by its optional first argument or by default the current working directory. Pass an optional tag as second argument, defaults to latest. Prints the absolute path to the binary upon success.

1liner example of linting in CI

$(curl -fsSL https://raw.githubusercontent.com/chiefbiiko/shfmt-install/v0.1.0/install.sh | sh) -d .

Proper installation

curl -fsSL https://raw.githubusercontent.com/chiefbiiko/shfmt-install/v0.1.0/install.sh | sh -s /usr/local/bin v2.6.4
shfmt -version

License

MIT

About

simple bash install script to fetch a sh/bash formatter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages