Skip to content

Commit

Permalink
Merge pull request actuallymentor#114 from lephilippe/patch-1
Browse files Browse the repository at this point in the history
display help message when typing "battery help"
  • Loading branch information
actuallymentor authored Apr 3, 2023
2 parents f601da1 + ca1c028 commit 6dbd7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Update management
## variables are used by this binary as well at the update script
## ###############
BATTERY_CLI_VERSION="v1.0.10"
BATTERY_CLI_VERSION="v1.0.11"

# Path fixes for unexpected environments
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/opt/homebrew
Expand Down Expand Up @@ -188,7 +188,7 @@ function get_maintain_percentage() {
## ###############

# Help message
if [ -z "$action" ]; then
if [ -z "$action" ] || [[ "$action" == "help" ]]; then
echo -e "$helpmessage"
exit 0
fi
Expand Down

0 comments on commit 6dbd7b4

Please sign in to comment.