From d53ccecbdb8c3103fe42672be3d0a0fc3bdb60d0 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 3 Apr 2025 10:52:12 +0200 Subject: [PATCH] Fix. --- bookworm/scripts/lib/copy_dirtree | 2 +- bookworm/scripts/lib/setup_users | 2 +- testing/home/desktop/.local/bin/borgplom | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bookworm/scripts/lib/copy_dirtree b/bookworm/scripts/lib/copy_dirtree index 12e51c9..438f4bd 100644 --- a/bookworm/scripts/lib/copy_dirtree +++ b/bookworm/scripts/lib/copy_dirtree @@ -17,6 +17,6 @@ copy_dirtree() { mkdir -p "${DIRECTORY}" cp -a "${PATH_SOURCE}" "${PATH_TARGET}" done - cd - + cd - > /dev/null done } diff --git a/bookworm/scripts/lib/setup_users b/bookworm/scripts/lib/setup_users index 98b6ab4..cc09567 100644 --- a/bookworm/scripts/lib/setup_users +++ b/bookworm/scripts/lib/setup_users @@ -17,6 +17,6 @@ setup_users() { mkdir -p "${PATH_USER_BIN}" cd "${PATH_USER_BIN}" ln -s ../../.plomlib.sh lib - cd - + cd - > /dev/null chown -R "${USERNAME}:${USERNAME}" "${PATH_USER_HOME}" } diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index dd6a40b..aa7b6ac 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -4,7 +4,7 @@ cd $(dirname "$0") . lib/constants_borg # PATH_BORG_CONF . lib/get_passphrase . lib/path_tmp_timestamped -cd - +cd - > /dev/null BIN_NAME="$(basename $0)" @@ -42,15 +42,13 @@ _print_usage() { } # exits -_PREFIX_ABORTING='Aborting due to ' - error_exit() { - echo "${_PREFIX_ABORTING}$1" + echo "Aborting due to $1" exit 1 } error_exit_with_usage() { - error_exit "${_PREFIX_ABORTING}$1\n$(_print_usage)" + error_exit "${1}\n\n$(_print_usage)" } # commands @@ -93,7 +91,7 @@ CMDFNC_backup_keys() { echo "Copying ${_FILENAME} to ${_PATH_TARGET} …" cp "${_FILENAME}" "${_PATH_TARGET}" done - cd - + cd - > /dev/null } HELP_ARGS_claim=' PATH' -- 2.30.2