calling another script , preserve environment variables?
Greetings all,
My first (main.sh) script is going to call the second script (settings.sh).I do it as follows: Code:
#script1 - main.sh second script is as follows: Code:
#script 2 - settings.sh Any tips? |
Instead of:
sh config/settings.sh Try this: source config/settings.sh Or shorter version: . config/settings.sh |
All times are GMT -5. The time now is 02:10 PM. |