Fix: SC1083 on getLastSave.sh

This commit is contained in:
York-Simon Johannsen 2023-06-08 12:43:18 +02:00
parent 8e54cf66b8
commit 15f5773552
No known key found for this signature in database
GPG key ID: 006F8812A4B527D9

View file

@ -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