home · contact · privacy
Fix. master
authorChristian Heller <c.heller@plomlompom.de>
Thu, 3 Apr 2025 09:04:52 +0000 (11:04 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 3 Apr 2025 09:04:52 +0000 (11:04 +0200)
testing/home/desktop/.local/bin/borgplom
testing/home/desktop/.local/bin/vol

index 6d30f4133b84660af286f1803c4f393a819dbeb9..6216f1831e04d010c5f1f9191bc534179cf6a6c8 100755 (executable)
@@ -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}"
     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'
 }
 
 HELP_DESC_help='print this help and exit'
index 53614e090110329d348e057a2c3e5c2d5a7dddb1..7081e12613d5976846a1915fd3307ee97fdda23c 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 set -e
 cd $(dirname "$0")
 #!/bin/sh
 set -e
 cd $(dirname "$0")
+. lib/abort
 . lib/audio_dev_is_mute
 
 MAX_LOUDNESS=150
 . 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"
 }
 
     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
 
 toggle_mute() {
     if audio_dev_is_mute; then