Tiny sh
script that installs the shfmt binary for linux_x86_64
or darwin_x86_64
. Please pull request to support more!
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.
$(curl -fsSL https://raw.githubusercontent.com/chiefbiiko/shfmt-install/v0.1.0/install.sh | sh) -d .
curl -fsSL https://raw.githubusercontent.com/chiefbiiko/shfmt-install/v0.1.0/install.sh | sh -s /usr/local/bin v2.6.4
shfmt -version