325621b10622a24e81c7a2fdacb2cb98ec3117b1
bash/\350\207\252\350\272\253\343\201\256script file\343\201\270\343\201\256\343\203\221\343\202\271\343\202\222bash script\343\201\213\343\202\211\345\217\226\345\276\227\343\201\231\343\202\213.md
... | ... | @@ -0,0 +1,5 @@ |
1 | +[Reliable way for a Bash script to get the full path to itself - Stack Overflow](https://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself) |
|
2 | + |
|
3 | +```bash |
|
4 | +SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" |
|
5 | +``` |
|
... | ... | \ No newline at end of file |