c9 / install

Cloud9 SSH installer
179 stars 151 forks source link

Ensure that running link.sh ends where it started #78

Closed hlapp closed 7 years ago

hlapp commented 7 years ago

The script changes directory, but then never comes up to where it started from, which is a problem if executed from another script (which presumably this script is supposed to be, e.g., as a replacement for install.sh). This fixes that.

nightwing commented 7 years ago

how do you run link.sh? script can't change the working dir of the calling script, unless it is sourced like:

.   path/to/link.sh
hlapp commented 7 years ago

@nightwing you are correct, I can avoid this being an issue by simply running in its own subshell. Will close this.