v0.1.0
Below are easy install instructions by OS and Architecture. As always there are always the standard instructions in the README.md as well.
linux
386 - linux
# Export the sha256sum for verification.
$ export BATTERY_SHA256="0616fce641f49b35115def33f3c7749f89d0d600775e66704b1c0c6a5d16e6c7"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.1.0/battery-linux-386" -o "/usr/local/bin/battery" \
&& echo "${BATTERY_SHA256} /usr/local/bin/battery" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/battery"
$ echo "battery installed!"
# Run it!
$ battery -hamd64 - linux
# Export the sha256sum for verification.
$ export BATTERY_SHA256="96e384c8d4eacf2d299554cff251ffc18efc0be1467b39658c6d3d25d0b5132a"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.1.0/battery-linux-amd64" -o "/usr/local/bin/battery" \
&& echo "${BATTERY_SHA256} /usr/local/bin/battery" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/battery"
$ echo "battery installed!"
# Run it!
$ battery -harm - linux
# Export the sha256sum for verification.
$ export BATTERY_SHA256="1f12a4c1a946eb7ae5eed80ec4577f2ab6feab41ee3fd635172b52bbadbf1144"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.1.0/battery-linux-arm" -o "/usr/local/bin/battery" \
&& echo "${BATTERY_SHA256} /usr/local/bin/battery" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/battery"
$ echo "battery installed!"
# Run it!
$ battery -harm64 - linux
# Export the sha256sum for verification.
$ export BATTERY_SHA256="4c50d164efd3519eec87d5493ebe862629c35fbc0edc07ff7357c3a09ffec798"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.1.0/battery-linux-arm64" -o "/usr/local/bin/battery" \
&& echo "${BATTERY_SHA256} /usr/local/bin/battery" | sha256sum -c - \
&& chmod a+x "/usr/local/bin/battery"
$ echo "battery installed!"
# Run it!
$ battery -h