Force json output appropriately

This commit is contained in:
Manuel Thalmann 2024-07-20 05:09:13 +02:00
parent e932bef303
commit 05c3dd174c

View file

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