I would source your script, this is the most commonly used method. This executes the script under the current shell instead of loading another one. Because this uses same shell env variables you set will be accessible when it exits. . /path/to/script.sh
or source /path/to/script.sh
will both work, .
works where source
doesn't sometimes.