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

View file

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