mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-22 15:36:41 +02:00
Fix: SC2035 on getStorageUsed.sh
This commit is contained in:
parent
e886343911
commit
8e54cf66b8
|
@ -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
|
||||
sudo /usr/bin/du -s ./* | sed 's/\.\///' | jc --du
|
||||
|
|
Loading…
Reference in a new issue