You need to
source
your script. If not it will be run in a separate subshell, changing the working directory of the subshell but not of the shell you run it in.
To source it :
. myfile.sh
or
source myfile.sh
No comments:
Post a Comment