Project

General

Profile

« Previous | Next » 

Revision 9308

lib/sh/util.sh: expand symlinks in $PWD using `cd -P .` so it matches the output of realpath

View differences:

util.sh
391 391

  
392 392
#### paths
393 393

  
394
cd -P . # expand symlinks in $PWD so it matches the output of realpath
395
# do before setting $top_script_abs so realpath has less symlinks to resolve
396

  
394 397
top_script_abs="$(realpath "$0")"; echo_vars top_script_abs # outermost script
395 398
	# realpath this before doing any cd so this points to the right place
396 399

  

Also available in: Unified diff