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