mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-09 17:32:15 +02:00
fix: follow symbolic link
This commit is contained in:
parent
891dbb4db5
commit
65cfa0f305
|
@ -26,7 +26,7 @@ fi
|
||||||
# Default value if .env not exists
|
# Default value if .env not exists
|
||||||
: "${home:=/home/borgwarehouse}"
|
: "${home:=/home/borgwarehouse}"
|
||||||
|
|
||||||
if [ -n "$(find "${home}"/repos -mindepth 1 -maxdepth 1 -type d)" ]; then
|
if [ -n "$(find -L "${home}"/repos -mindepth 1 -maxdepth 1 -type d)" ]; then
|
||||||
stat --format='{"repositoryName":"%n","lastSave":%Y}' \
|
stat --format='{"repositoryName":"%n","lastSave":%Y}' \
|
||||||
"${home}"/repos/*/integrity* |
|
"${home}"/repos/*/integrity* |
|
||||||
jq --slurp '[.[] | .repositoryName = (.repositoryName | split("/")[-2])]'
|
jq --slurp '[.[] | .repositoryName = (.repositoryName | split("/")[-2])]'
|
||||||
|
|
Loading…
Reference in a new issue