On Sun, Aug 23, 2020 at 12:07 AM ToddAndMargo via users users@lists.fedoraproject.org wrote:
On 2020-08-22 05:25, Tom H wrote:
- Why do you use "/usr/bin/nmcli" 6 times and "nmcli" twice?
There's no need for absolute paths.
Missed that. Now they are all absolute paths. Good catch. Thank you!
I use absolute paths when I will sometimes be operating outside the shell. It is a habit of mine to not trust $PATH from the shell. I do it all the time as a "just in case".
Did you turn all the other commands into absolute paths? (I hope not.)
If you're worried about not finding a command, set "PATH=..." after the shebang.