3 ms·
I've been using script_dir="$(dirname "$(realpath "$0")")" Hasn't failed me so far and it's easy enough to remember
by Yasuraka 2y ago
I've been using
script_dir="$(dirname "$(realpath "$0")")"
Hasn't failed me so far and it's easy enough to remember
- TeeMassive 2y agoRead the answers and comments from the SO threads. It won't always work for other people in other context.