Update: it is better to use env to handle the case the host system has multiple users

This commit is contained in:
b1ue 2019-03-07 12:38:41 +01:00
parent 05b2486a0c
commit a1c48a02d4

View File

@ -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()
{ {