f5vmr / svxlinkbuilder

Scripted build for Svxlink
GNU General Public License v3.0
3 stars 3 forks source link

Don't use sudo unless you need to #6

Closed brian32768 closed 3 months ago

brian32768 commented 3 months ago

Bad practice to use elevated permissions when you don't need them.

First example: You don't need to be root to do "git clone". Second example in install.sh don't need root to build.

f5vmr commented 3 months ago

In some respects I disagree, as often I have gone through the long manual process of command line instruction and the compilation has failed owing to lack of permissions to create a folder or such, when I have forgotten to use 'sudo' ahead of the instruction. Thus sudo has been the catch-all. I disagree with the installation of this product as user root, but user 'pi' still needs permissions to create some structures during the build.