Configure for current user if none is specified

This commit is contained in:
Manuel Thalmann 2024-07-20 14:06:25 +02:00
parent 4fb9e3b228
commit 40418dc7f3

View file

@ -20,6 +20,10 @@ begin
source "$dir/config.fish" source "$dir/config.fish"
set -l users (getUsers) set -l users (getUsers)
if not isConfigured || [ "$USER" != (getConfig "valhalla.setupUser.name") ]
runInstaller userConfig
end
for name in (echo "$users" | jq '.[]' --raw-output0 | string split0) for name in (echo "$users" | jq '.[]' --raw-output0 | string split0)
runInstaller userConfig "$name" runInstaller userConfig "$name"
end end