mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-15 20:25:19 +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.
|
# 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.
|
# 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",
|
# "user": "09d8240f",
|
||||||
|
@ -22,4 +22,6 @@
|
||||||
# Exit when any command fails
|
# Exit when any command fails
|
||||||
set -e
|
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