show age binary version and path in help message

This commit is contained in:
Ryan Mulligan 2020-09-18 13:13:54 -07:00
parent 07ce686870
commit 5fcb31e390
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ function show_help () {
echo ' '
echo 'RULES environment variable with path to Nix file specifying recipient public keys.'
echo "Defaults to './secrets.nix'"
echo ' '
echo "age binary path: ${ageBin}"
echo "age version: $(${ageBin} --version)"
}
test $# -eq 0 && (show_help && exit 1)