mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
6 lines
230 B
Bash
6 lines
230 B
Bash
#!/bin/bash
|
|
|
|
# Replace $HOME with the default user's home directory for environmental variables related to the default user home directory
|
|
|
|
homeDir=$(cut -d: -f6 /etc/passwd | tail -1)
|
|
sed -i "s|\$HOME|$homeDir|g" /etc/environment |