mirror of
https://github.com/flynx/git-utils.git
synced 2025-10-28 10:40:08 +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
|
||||
|
||||
DFL_LIST=repos.lst
|
||||
|
||||
while true ; do
|
||||
case $1 in
|
||||
-h|--help)
|
||||
@ -47,8 +49,11 @@ TARGET_PATH=${TARGET_PATH:=.}
|
||||
cd "$TARGET_PATH"
|
||||
|
||||
if [ -z $LIST ] ; then
|
||||
echo "need a list file..." >&2
|
||||
exit 1
|
||||
if [ -e $DFL_LIST ] ; then
|
||||
echo "need a list file..." >&2
|
||||
exit 1
|
||||
fi
|
||||
LIST=$DFL_LIST
|
||||
fi
|
||||
|
||||
IFS=$'\n' \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user