From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 3 Apr 2025 09:04:52 +0000 (+0200)
Subject: Fix.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/edit?a=commitdiff_plain;h=HEAD;p=config

Fix.
---

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