mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
Fix: SC1083 on getLastSave.sh
This commit is contained in:
parent
8e54cf66b8
commit
15f5773552
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue