Project

General

Profile

« Previous | Next » 

Revision 9269

bugfix: lib/sh/util.sh: $top_script: need to realpath this before doing any cd so this points to the right place. set and use $top_script_abs for this purpose.

View differences:

lib/sh/util.sh
304 304

  
305 305
#### paths
306 306

  
307
top_script_abs="$(realpath "$0")"; echo_vars top_script_abs # outermost script
308
	# realpath this before doing any cd so this points to the right place
309

  
307 310
set_paths()
308 311
{
309
	top_script="$(canon_rel_path "$0")"; echo_vars top_script # outermost script
312
	top_script="$(canon_rel_path "$top_script_abs")"; echo_vars top_script
310 313
	top_dir="$(dirname "$top_script")"; echo_vars top_dir
311 314
}
312 315
set_paths

Also available in: Unified diff