home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 2 Apr 2025 22:01:54 +0000 (00:01 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 2 Apr 2025 22:01:54 +0000 (00:01 +0200)
testing/home/desktop/.local/bin/borgplom

index a5a516ba47631f628eb7f4a6564d762dc96d2448..4cc157848e720d59aa305b3d3ef44739aa3a51c9 100755 (executable)
@@ -17,9 +17,12 @@ _print_usage() {
     echo "Wrapper around certain borgbackup usages.\n"
     echo "Available commands:\n"
     for _CMD in ${COMMANDS}; do
-       _ARGS="$(eval printf '%s' '"${HELP_ARGS_' ${_CMD} '}"')"
-       _DESC="$(eval printf '%s' '"${HELP_DESC_' ${_CMD} '}"')"
-        printf '  %s%s\t%s' "${_CMD}" "${_ARGS}" "${_DESC}"
+        _INDEX="  ${_CMD}$(eval printf '"%s"' '"${HELP_ARGS_'${_CMD}'}"')"
+        printf '%s' "${_INDEX}"
+        if [ $(printf '%s' "${_INDEX}" | wc -c) -lt 12 ]; then
+            printf '\t'
+        fi
+        eval printf '"\t%s\n"' '"${HELP_DESC_'${_CMD}'}"'
     done
 }