mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
b5938: update script to go to users dir
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user