mirror of https://github.com/PentHertz/srsLTE.git
fix install configs and use SUDO_GID
flagged by alex-orange
This commit is contained in:
parent
2e426948fe
commit
e93b4b0e10
|
@ -45,7 +45,8 @@ install_file(){
|
|||
# Set file ownership to user calling sudo
|
||||
if [ $SUDO_USER ]; then
|
||||
user=$SUDO_USER
|
||||
chown $user:$user $dest_path
|
||||
group=$SUDO_GID
|
||||
chown $user:$group $dest_path
|
||||
fi
|
||||
else
|
||||
echo " - $source_path doesn't exists. Skipping it."
|
||||
|
|
Loading…
Reference in New Issue