mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-29 19:20:10 +00:00
added default list...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c0c8dd5eca
commit
cb9f951531
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
|
|
||||||
|
DFL_LIST=repos.lst
|
||||||
|
|
||||||
while true ; do
|
while true ; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
@ -47,8 +49,11 @@ TARGET_PATH=${TARGET_PATH:=.}
|
|||||||
cd "$TARGET_PATH"
|
cd "$TARGET_PATH"
|
||||||
|
|
||||||
if [ -z $LIST ] ; then
|
if [ -z $LIST ] ; then
|
||||||
echo "need a list file..." >&2
|
if [ -e $DFL_LIST ] ; then
|
||||||
exit 1
|
echo "need a list file..." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
LIST=$DFL_LIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IFS=$'\n' \
|
IFS=$'\n' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user