mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-16 12:36:48 +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
|
||||
: "${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}' \
|
||||
"${home}"/repos/*/integrity* |
|
||||
jq --slurp '[.[] | .repositoryName = (.repositoryName | split("/")[-2])]'
|
||||
|
|
Loading…
Reference in a new issue