^thehatsrule^

Group: Members
Posts: 3275
Joined: July 2006 |
 |
Posted: Nov. 23 2007,17:05 |
 |
That's due to the use of sudo, which resets PATH to safe defaults.
In your script, you can just use something like `export PATH="$PATH:/opt/bin"` instead which is easier to decipher (unless you want to edit sudoers..)
Side note: I remember that /opt/bin was added to root's path for convenience with some uci/targz extensions, but it now also seems to include the current directory. I am led to believe that this is not good practice...
|