support fetchall feature
This commit is contained in:
parent
fedc925111
commit
ad8b04b6a4
1 changed files with 7 additions and 0 deletions
|
@ -13,11 +13,18 @@ getVal()
|
||||||
eval "echo \$$vari"
|
eval "echo \$$vari"
|
||||||
}
|
}
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
"fetchall")
|
||||||
|
for sample in WORLD WORLDX SAKILA MESSAGERIE TESTDB; do
|
||||||
|
sh $0 fetch $sample
|
||||||
|
done
|
||||||
|
;;
|
||||||
"fetch")
|
"fetch")
|
||||||
|
[ -z "$2" ] && exit 1
|
||||||
mkdir -p ./contents
|
mkdir -p ./contents
|
||||||
wget -O contents/$(basename $(getVal "DB_$2_URL")) $(getVal "DB_$2_URL")
|
wget -O contents/$(basename $(getVal "DB_$2_URL")) $(getVal "DB_$2_URL")
|
||||||
;;
|
;;
|
||||||
"load")
|
"load")
|
||||||
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown operation: $1"
|
echo "Unknown operation: $1"
|
||||||
|
|
Loading…
Reference in a new issue