Revision 9724
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
580 | 580 |
|
581 | 581 |
#### paths |
582 | 582 |
|
583 |
top_dir_orig="$(dirname "$0")"; echo_vars top_dir_orig |
|
584 |
|
|
583 | 585 |
top_script_abs="$(realpath "$0")"; echo_vars top_script_abs # outermost script |
584 | 586 |
# realpath this before doing any cd so this points to the right place |
587 |
top_dir_abs="$(dirname "$top_script_abs")"; echo_vars top_dir_abs |
|
585 | 588 |
|
586 | 589 |
set_paths() |
587 | 590 |
{ |
Also available in: Unified diff
lib/sh/util.sh: added $top_dir_abs, $top_dir_orig