From 3f3b25bc959ca1aca5c73aee30d3f859add37c04 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 28 Jul 2024 23:44:58 +0200 Subject: [PATCH] Execute `userConfig` for current user only once --- scripts/Common/Scripts/software.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Scripts/software.fish b/scripts/Common/Scripts/software.fish index cce684ba..6edb1383 100755 --- a/scripts/Common/Scripts/software.fish +++ b/scripts/Common/Scripts/software.fish @@ -25,7 +25,9 @@ begin end for name in (echo "$users" | jq '.[]' --raw-output0 | string split0) - runInstaller userConfig "$name" + if [ "$name" != "$USER" ] + runInstaller userConfig "$name" + end end else if [ "$action" = "userConfig" ] set -l name $argv[2]