From 72b854e8d97b012ab31293d766ca0a78bffe8f45 Mon Sep 17 00:00:00 2001 From: York-Simon Johannsen Date: Mon, 19 Jun 2023 12:00:11 +0200 Subject: [PATCH] Fix: Fix: SC2035 on getStorageUsed.sh --- docs/sudoers/10-borgwarehouse | 3 +-- helpers/shells/getStorageUsed.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/sudoers/10-borgwarehouse b/docs/sudoers/10-borgwarehouse index 7f76f0a..4857f17 100644 --- a/docs/sudoers/10-borgwarehouse +++ b/docs/sudoers/10-borgwarehouse @@ -6,5 +6,4 @@ borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/chmod -R 750 /var/borgwarehouse/[[\:x borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/chown -R [[\:xdigit\:]]*\:borgwarehouse /var/borgwarehouse/[[\:xdigit\:]]* borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/tee /var/borgwarehouse/[[\:xdigit\:]]*/.ssh/authorized_keys borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/sed -ri s|*|g /var/borgwarehouse/[[\:xdigit\:]]*/.ssh/authorized_keys -borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/du -s [[\:xdigit\:]]* - +borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/du -s -- [[\:xdigit\:]]* diff --git a/helpers/shells/getStorageUsed.sh b/helpers/shells/getStorageUsed.sh index 95d0bf7..25adedc 100755 --- a/helpers/shells/getStorageUsed.sh +++ b/helpers/shells/getStorageUsed.sh @@ -16,4 +16,4 @@ set -e # Use jc to output a JSON format with du command cd /var/borgwarehouse -sudo /usr/bin/du -s ./* | sed 's/\.\///' | jc --du +sudo /usr/bin/du -s -- * | jc --du