I am new on Ubuntu and Linux, shell scripting etc. I have prepared a small script in order to set some enviromental variables, in order to make my life faster and work more efficient with a program. While it is easy to open the terminal and set the that manually.
if [ -f /home/lefteris/uems/etc/EMS.profile ]; then
. /home/lefteris/uems/etc/EMS.profile
fi
When I put it on a script, which I call variables.sh it is not working. File it is like that.
#!/bin/bash
if [ -f /home/lefteris/uems/etc/EMS.profile ]; then
. /home/lefteris/uems/etc/EMS.profile
fi
Please, tell me what I am doing wrong.