Project

General

Profile

« Previous | Next » 

Revision 9239

*{.sh,run}: echo all global vars (except those defined before echo_vars is available)

View differences:

lib/runscripts/util.run
26 26
on_exit() { run_args_cmd; }
27 27
trap on_exit EXIT
28 28

  
29
top_file="${top_script%.run}"
30
top_filename="$(basename "$top_file")"
29
top_file="${top_script%.run}"; echo_vars top_file
30
top_filename="$(basename "$top_file")"; echo_vars top_filename
31 31

  
32 32
fi
lib/sh/util.sh
416 416

  
417 417
#### commands
418 418

  
419
top_script="$(canon_rel_path "$0")" # outermost script
420
top_dir="$(dirname "$top_script")"
419
top_script="$(canon_rel_path "$0")"; echo_vars top_script # outermost script
420
top_dir="$(dirname "$top_script")"; echo_vars top_dir
421 421

  
422 422
require_not_exists() # usage: require_not_exists file || return 0
423 423
{ test ! -e "$1" || type=info die "file "$1" already exists, skipping"; }

Also available in: Unified diff