From 7329c23c12528cef8374fef7347bd36cc4c0b9ef Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 3 Apr 2025 11:04:52 +0200 Subject: [PATCH] Fix. --- testing/home/desktop/.local/bin/borgplom | 3 +-- testing/home/desktop/.local/bin/vol | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index 6d30f41..6216f18 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -117,8 +117,7 @@ CMDFNC_claim() { cp "${_PATH_SOURCE}" "${_PATH_TARGET_KEY}" echo "Writing ${_PATH_TARGET_LOCATION} …" printf '%s' "$(servername_to_location ${_FILENAME})" > "${_PATH_TARGET_LOCATION}" - chmod a-rwx "${_PATH_TARGET_KEY}" "${_PATH_TARGET_LOCATION}" - chmod u+rw "${_PATH_TARGET_KEY}" "${_PATH_TARGET_LOCATION}" + chmod a-rwx,u+rw "${_PATH_TARGET_KEY}" "${_PATH_TARGET_LOCATION}" } HELP_DESC_help='print this help and exit' diff --git a/testing/home/desktop/.local/bin/vol b/testing/home/desktop/.local/bin/vol index 53614e0..7081e12 100755 --- a/testing/home/desktop/.local/bin/vol +++ b/testing/home/desktop/.local/bin/vol @@ -1,6 +1,7 @@ #!/bin/sh set -e cd $(dirname "$0") +. lib/abort . lib/audio_dev_is_mute MAX_LOUDNESS=150 @@ -17,11 +18,7 @@ print_usage() { echo " ${FLAG_HELP_SHORT}, ${FLAG_HELP_LONG}\tdisplay this help and exit" } -error_exit() { - echo "Aborting due to $1\n" - print_usage - exit 1 -} +error_exit() { abort "Aborting due to $1\n\n$(print_usage)"; } toggle_mute() { if audio_dev_is_mute; then -- 2.30.2