mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
Update: it is better to use env to handle the case the host system has multiple users
This commit is contained in:
parent
05b2486a0c
commit
a1c48a02d4
@ -4,7 +4,7 @@
|
|||||||
# this assumes you are running as root or are using sudo
|
# this assumes you are running as root or are using sudo
|
||||||
#
|
#
|
||||||
|
|
||||||
USER="$(cat /etc/passwd | grep '/home' | cut -d: -f1 | head -1)"
|
USER="$(env | grep 'USER' | cut -d '=' -f2 | head -1)"
|
||||||
|
|
||||||
get_fedora_deps()
|
get_fedora_deps()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user