I've got a .sh script and it has this "if" in it:
if [ -z "$SOME_LIB" ]; then
echo "Environment variable SOME_LIB is needed!"
exit 1
fi
Now. When I type "printenv" I can see that "SOME_LIB" has value "/usr/local/lib/python2.6 ". That path is correct. And all is good. But when I want to run that .sh file from terminal is gives me "Environment variable SOME_LIB is needed!"
What do i have to do to get it running properly?
Thank's for your help!!