Skip to content

Commit

Permalink
Display a version number
Browse files Browse the repository at this point in the history
  • Loading branch information
dfandrich committed Feb 5, 2022
1 parent 878f20f commit b5a1ec6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ information and write out the phone number, balance in dollars, and balance
expiry date on one line separated with spaces. There are a number command-line
options available to change this behaviour.

`--help` will show a brief list of options.
`--help` will show a brief list of options and the version number.

`--quiet` will cause the script to act as though `quiet=yes` were found in the
configuration file.
Expand Down Expand Up @@ -108,6 +108,9 @@ failing consistently.

Daniel Fandrich <[email protected]>

See more info at the
[project home page](https://github.com/dfandrich/speakout-account-info/).

This program is Copyright © 2022 Daniel Fandrich. It is distributed under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
Expand Down
4 changes: 3 additions & 1 deletion speakout-account-info
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

set -e

readonly VERSION=2022.0
if [[ "$1" == "--help" ]]; then
echo "Usage: $0 [--help] [--quiet] [--alwaysmail] [--lowmail]"
echo "ver. $VERSION"
exit 0
fi

Expand Down Expand Up @@ -200,7 +202,7 @@ if [[ -n "$recipient" && ( -n "$alwaysmail" || ( -n "$lowmail" && -n "$LIMITEXCE
echo "To: $recipient"
echo "Subject: SpeakOut cellular account status report for $(date +'%B %d, %Y')"
echo "Content-Type: text/html; charset=UTF-8"
echo "X-Mailer: speakout-account-info"
echo "X-Mailer: speakout-account-info $VERSION"
echo ""
cat "$CONTENTFILE"
) | $mailer
Expand Down

0 comments on commit b5a1ec6

Please sign in to comment.