From c4314ec3eb00205936d0223ae43d2d84ac7c665b Mon Sep 17 00:00:00 2001 From: toerd Date: Sat, 24 Nov 2018 15:14:40 +0100 Subject: [PATCH] fixed bug in git config (sudo -u) --- fresh.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fresh.sh b/fresh.sh index 4e153df..7d83177 100755 --- a/fresh.sh +++ b/fresh.sh @@ -205,10 +205,10 @@ set_pacman_config() { } set_git_config() { - git config --global user.email=philip.gaber@gmail.com - git config --global user.name=Toerd@$(hostname) - git config --global credential.useHttpPath true - git config --global credential.helper /usr/bin/pass-git-helper + sudo -u $uname git config --global user.email=philip.gaber@gmail.com + sudo -u $uname git config --global user.name=Toerd@$(hostname) + sudo -u $uname git config --global credential.useHttpPath true + sudo -u $uname git config --global credential.helper /usr/bin/pass-git-helper } set_system_stuff() {