geeks-r-us / anbox-playstore-installer

Install script that automates installation of googles playstore in anbox
MIT License
656 stars 155 forks source link

Better usage of sudo #20

Closed goodevilgenius closed 5 years ago

goodevilgenius commented 5 years ago

If we're using sudo throughout the script, then it shouldn't need to be run as root.

However, doing:

sudo echo something >> root-owned-file

doesn't work, since the redirect doesn't get the sudo.

So, to fix, we have to do:

echo something | sudo tee -a root-owned-file