Revision 1953
Added by Aaron Marcuse-Kubitza over 12 years ago
with_all | ||
---|---|---|
8 | 8 |
local selfDir="$(dirname -- "$self")" |
9 | 9 |
|
10 | 10 |
# Was run without initial ".", or with insufficient parameters |
11 |
if test "${BASH_LINENO[@]: -1}" = 0 -o "$#" -lt 1; then
|
|
11 |
if test "${BASH_LINENO[1]}" = 0 -o "$#" -lt 1; then
|
|
12 | 12 |
echo "Usage: . $self make_target (note initial \".\")"|fold -s >&2 |
13 | 13 |
return 2 |
14 | 14 |
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