Fix inheritance of user config

This commit is contained in:
Manuel Thalmann 2024-08-23 18:28:20 +02:00
parent ec1368950e
commit 2af3a6de6f
2 changed files with 56 additions and 69 deletions
scripts/Common/Software/rclone

View file

@ -9,7 +9,7 @@ begin
function userConfig -V dir -a name
source "$dir/../../Scripts/config.fish"
set -l key "valhalla.users.$name.rclone.configurations"
set -l key "valhalla.linux.users.$name.rclone.configurations"
set -l configs (getConfig "$key" --apply "builtins.attrNames" --json)
if [ (echo "$configs" | jq "length") -gt 0 ]