Force json output appropriately

This commit is contained in:
Manuel Thalmann 2024-07-20 05:09:13 +02:00
parent 913daa8b6d
commit 2354dcf412

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" ]