v0.2.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="b361bf937788c1db2cf51e75c34a2f5e9d3e9d174b8023a4979fd324e2c75c12"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.2.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="f242a2dc7f016effba5066bed0b404edb7e3b778de69ccc640ee91c5c11d1287"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.2.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="6677d877f0eafe1e82e359dcdceaf08b2e5a67afaeb053562a81b67d0ed1fcc6"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.2.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="3912432905d2f5262782a86eb01529279aa62f855ca569aeafd2c9fc94e743b5"
# Download and check the sha256sum.
$ curl -fSL "https://github.com/jessfraz/battery/releases/download/v0.2.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