Revision 1953
Added by Aaron Marcuse-Kubitza over 12 years ago
stop_imports | ||
---|---|---|
6 | 6 |
local self="${BASH_SOURCE[0]}" |
7 | 7 |
local selfDir="$(dirname -- "$self")" |
8 | 8 |
|
9 |
if test "${BASH_LINENO[@]: -1}" = 0; then # was run without initial "."
|
|
9 |
if test "${BASH_LINENO[1]}" = 0; then # was run without initial "."
|
|
10 | 10 |
echo "Usage: . $self (note initial \".\")"|fold -s >&2 |
11 | 11 |
return 2 |
12 | 12 |
fi |
Also available in: Unified diff
Scripts that are meant to be run in the calling shell: Fixed bug where running the script inside another script would make the script think it was being run as a program, and abort with a usage error