mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-22 07:26:40 +02:00
Fix: SC1083 on getLastSave.sh
This commit is contained in:
parent
8e54cf66b8
commit
15f5773552
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Shell created by Raven for BorgWarehouse.
|
||||
# Get the timestamp of the last modification of the file integrity.* for of all repositories in a JSON output.
|
||||
# stdout will be an array like :
|
||||
# stdout will be an array like :
|
||||
# [
|
||||
# {
|
||||
# "user": "09d8240f",
|
||||
|
@ -22,4 +22,6 @@
|
|||
# Exit when any command fails
|
||||
set -e
|
||||
|
||||
stat -c {\"user\":\"%U\",\"lastSave\":%Y\} /var/borgwarehouse/*/repos/*/integrity* | jq -s
|
||||
stat --format='{"user":"%U","lastSave":%Y}' \
|
||||
/var/borgwarehouse/*/repos/*/integrity* |
|
||||
jq --sort-key
|
||||
|
|
Loading…
Reference in a new issue