M-HT
Very Active Member
I use something like this (inside pnd, the fusilli client is in fusilli subdirectory):
which fusilli
RESULT=$?
if [ $RESULT -ne 0 ]
then
export PATH=`pwd`/fusilliPATH
fi
...
fusilli some args here
This way I don't care where fusilli client is located in the firmware (as long as it's in PATH).And I only do the check once and subsequent uses are the same whether in the script or in my executable.
which fusilli
RESULT=$?
if [ $RESULT -ne 0 ]
then
export PATH=`pwd`/fusilliPATH
fi
...
fusilli some args here
This way I don't care where fusilli client is located in the firmware (as long as it's in PATH).And I only do the check once and subsequent uses are the same whether in the script or in my executable.