On info if verbose is set, print out the key too

This commit is contained in:
Clemens Schwaighofer
2025-12-01 17:04:03 +09:00
parent 7e4dc8d500
commit 1f8d38720c
2 changed files with 10 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ if [ "${INFO}" -eq 1 ]; then
# run info command if not a dry drun
if [ "${DRYRUN}" -eq 0 ]; then
${BORG_COMMAND} info ${OPT_REMOTE} "${REPOSITORY}";
if [ "${VERBOSE}" -eq 1 ]; then
# print key information
echo "------------------------------------------------------------------------------";
${BORG_COMMAND} key export "${REPOSITORY}";
fi;
fi;
if [ "${MODULE}" = "files" ]; then
if [ "${FOLDER_OK}" -eq 1 ]; then