From 8e54cf66b804fdba8a7166a84850ae7850ad38a3 Mon Sep 17 00:00:00 2001 From: York-Simon Johannsen Date: Thu, 8 Jun 2023 12:34:19 +0200 Subject: [PATCH] Fix: SC2035 on getStorageUsed.sh --- helpers/shells/getStorageUsed.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/shells/getStorageUsed.sh b/helpers/shells/getStorageUsed.sh index 4d58746..24d9a44 100755 --- a/helpers/shells/getStorageUsed.sh +++ b/helpers/shells/getStorageUsed.sh @@ -2,7 +2,7 @@ # Shell created by Raven for BorgWarehouse. # Get the size of all repositories in a JSON output. -# stdout will be an array like : +# stdout will be an array like : # [ # { size: 32, name: '10e73223' }, # { size: 1155672, name: '83bd4ef1' }, @@ -16,4 +16,4 @@ set -e # Use jc to output a JSON format with du command cd /var/borgwarehouse -sudo /usr/bin/du -s * | jc --du \ No newline at end of file +sudo /usr/bin/du -s ./* | sed 's/\.\///' | jc --du