From a5805ff84b22b18e7b26f17e2b5800e85a729df9 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 23 Jul 2026 10:43:53 +0200 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 3115428c..4e7bc46d 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -36,8 +36,7 @@ EOF return 1 fi - # NB 04.03.25 declare owner=$(ls -dl "$file" | awk '{print $3}') - # NB 04.03.25: We get the owner from the dir not the file. Because the file could be own by anotrher user for specific use. Ex: acl.pl owner is proxy but the git repo is root + # NB 04.03.25: We get the owner from the dir not the file. Because the file could be own by another user for specific use. Ex: acl.pl owner is proxy but the git repo is root declare owner="$(ls -dl "$(dirname "$file")" | awk '{print $3}')" [ -z "$owner" ] && echo "Can't find owner for file '$file'" 1>&2 && return 1 -- 2.47.3