export number of sources
This commit is contained in:
parent
13b47585a8
commit
1d68408541
1 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,9 @@ while [ "$i" -le $# ]; do
|
||||||
if [ "$NO_MORE_ARGS" = 1 ]; then
|
if [ "$NO_MORE_ARGS" = 1 ]; then
|
||||||
eval source_${no_sources}=\"$arg\"
|
eval source_${no_sources}=\"$arg\"
|
||||||
no_sources=$(($no_sources+1))
|
no_sources=$(($no_sources+1))
|
||||||
|
|
||||||
|
# make variable available for subscripts
|
||||||
|
eval export source_${no_sources}
|
||||||
else
|
else
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
-a|--all)
|
-a|--all)
|
||||||
|
@ -126,6 +129,9 @@ while [ "$i" -le $# ]; do
|
||||||
i=$(($i+1))
|
i=$(($i+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# also export number of sources
|
||||||
|
export no_sources
|
||||||
|
|
||||||
#
|
#
|
||||||
# be really, really, really verbose
|
# be really, really, really verbose
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue