Project

General

Profile

« Previous | Next » 

Revision 9267

lib/runscripts/util.run: set $top_file, $top_filename in a function (set_paths__util_run())

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}"; echo_vars top_file
30
top_filename="$(basename "$top_file")"; echo_vars top_filename
29
set_paths__util_run()
30
{
31
	top_file="${top_script%[./]run}"; echo_vars top_file
32
	top_filename="$(basename "$top_file")"; echo_vars top_filename
33
}
34
set_paths__util_run
31 35

  
32 36
fi

Also available in: Unified diff