b5938: update script to go to users dir

This commit is contained in:
Thomas Stokes committed 2024-01-03 06:39:44 +01:00
1 parent 26bd205cc7
commit 247d57d6d2
1 file changed
+1 -1
@@ -17,7 +17,7 @@ ENV_TYPE="$1"
GIT_USER="$2"
GIT_DIR_NAME="$3"
cd "$(dirname "$0")/${ENV_TYPE}"
cd "$(dirname "$0")/${ENV_TYPE}/users"
GIT_PATH="$(grep "^${GIT_USER}" /etc/passwd | cut -d':' -f6)/${GIT_DIR_NAME}" # The path to the git repo that contains the files needed.
for dir in $(ls -d */ ); do
USERNAME=$(echo $dir | sed "s/\/$//") # Dirname is the username. The trailing slash is removed.