
There's no need to return to the original directory at the end of a script - the current working directory within the subshell that executes the script doesn't affect the working directory in the calling shell.
There's no need to return to the original directory at the end of a script - the current working directory within the subshell that executes the script doesn't affect the working directory in the calling shell.