fix: follow symbolic link

This commit is contained in:
Ravinou 2024-03-17 20:48:14 +01:00
parent 891dbb4db5
commit 65cfa0f305
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -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])]'