. lib/get_passphrase
. lib/path_tmp_timestamped
-PATH_BORG_CONF_SECURITY="${PATH_BORG_CONF}/security"
-
BIN_NAME="$(basename $0)"
CMD_HELP=help
CMD_KEYS=keys
CMD_ORGPULL=orgpull
-PREFIX_ABORTING='Aborting due to '
print_usage() {
echo "Usage: ${BIN_NAME} COMMAND"
# exits
+_PREFIX_ABORTING='Aborting due to '
+
error_exit() {
- echo "${PREFIX_ABORTING}$1"
+ echo "${_PREFIX_ABORTING}$1"
exit 1
}
error_exit_with_usage() {
- echo "${PREFIX_ABORTING}$1\n"
+ echo "${_PREFIX_ABORTING}$1\n"
print_usage
exit 1
}
# commands beyond print_usage
+PATH_BORG_CONF_SECURITY="${PATH_BORG_CONF}/security"
_path_repo_location() { echo "${PATH_BORG_CONF_SECURITY}/${1}/location"; }
cmd_keys() {