![]() ![]() For edge cases, such as finding a symlinked script's true source directory, see this answer.or, if you must remain POSIX-compliant, cd - "$(dirname "$0")".cd - "$(dirname "$BASH_SOURCE")" right after the shebang line.To make a shell script change to the folder in which it is located, place. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |