Fix configuration target

This commit is contained in:
Manuel Thalmann 2024-07-20 01:43:53 +02:00
parent 0a9d8e2c16
commit 64c27aae02

View file

@ -10,17 +10,20 @@ begin
function configureSW -S -V dir -a scope name
source "$dir/../../Scripts/config.fish"
set -l root
set -l user
set -l configArgs
function setConfig
sudo git config $configArgs $argv
sudo -u "$user" git config $configArgs $argv
end
if [ -z "$scope" ] || [ "$scope" = "system" ]
set root "valhalla"
set user "root"
set configArgs "--system"
else
set root "valhalla.users.$name"
set user "$name"
set configArgs "--global"
set -l displayName "$root.displayName"
set -l mailAddress "$root.mailAddress"