Skip to content

Support multiple invocations of CLI commands from scripts

Compare
Choose a tag to compare
@ahnick ahnick released this 27 Jun 19:05
· 2 commits to master since this release

This release adds support for invoking CLI commands multiple times (e.g. importing multiple secrets from a shell script)

Example:

. encpass.sh

encpass_cmd_import -fop secret1.enc
encpass_cmd_import -fop secret2.enc

It also reduces the number of calls to encpass_checks and addresses an issue (#24) where the shell name (or script name) might contain a hyphen. All preceding hyphens are now stripped from argument 0 that corresponds to the invoking shell or script name.