Revision 8934
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
180 | 180 |
|
181 | 181 |
#### commands |
182 | 182 |
|
183 |
top_dir="$(dirname "$0")" # outermost script |
|
183 |
top_script="$0" # outermost script |
|
184 |
top_dir="$(dirname "$top_script")" |
|
185 |
top_file="${top_script%.run}" |
|
186 |
top_filename="$(basename "$top_file")" |
|
184 | 187 |
|
185 | 188 |
run_args_cmd () # runs the command line args command |
186 | 189 |
{ |
Also available in: Unified diff
lib/util.sh: added $top_script (alias for $0), $top_file, $top_filename. use new $top_file in $top_dir.