File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ build/vulnerabilities*
7
7
Vagrant /Vagrantfile
8
8
Vagrant /data
9
9
Vagrant /.vagrant
10
+ contents
11
+ contents /*
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+
4
+ DB_WORLD_URL=" https://downloads.mysql.com/docs/world.sql.zip"
5
+ DB_WORLDX_URL=" https://downloads.mysql.com/docs/world_x-db.zip"
6
+ DB_SAKILA_URL=" https://downloads.mysql.com/docs/sakila-db.zip"
7
+ DB_MESSAGERIE_URL=" https://downloads.mysql.com/docs/menagerie-db.zip"
8
+ DB_TESTDB_URL=" https://github.com/datacharmer/test_db/archive/master.zip"
9
+
10
+ getVal ()
11
+ {
12
+ local vari=$1
13
+ eval " echo \$ $vari "
14
+ }
15
+ case " $1 " in
16
+ " fetch" )
17
+ mkdir -p ./contents
18
+ wget -O contents/$( basename $( getVal " DB_$2 _URL" ) ) $( getVal " DB_$2 _URL" )
19
+ ;;
20
+ " load" )
21
+ ;;
22
+ * )
23
+ echo " Unknown operation: $1 "
24
+ ;;
25
+ esac
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+
4
+ DB_WORLD_URL=" https://downloads.mysql.com/docs/world.sql.zip"
5
+ DB_WORLDX_URL=" https://downloads.mysql.com/docs/world_x-db.zip"
6
+ DB_SAKILA_URL=" https://downloads.mysql.com/docs/sakila-db.zip"
7
+ DB_MESSAGERIE_URL=" https://downloads.mysql.com/docs/menagerie-db.zip"
8
+ DB_TESTDB_URL=" https://github.com/datacharmer/test_db/archive/master.zip"
9
+
10
+ getVal ()
11
+ {
12
+ local vari=$1
13
+ eval " echo \$ $vari "
14
+ }
15
+ case " $1 " in
16
+ " fetch" )
17
+ set -x
18
+ mkdir -p ./contents
19
+ wget -O contents/$( basename $( getVal " DB_$2 _URL" ) ) $( getVal " DB_$2 _URL" )
20
+ ;;
21
+ " load" )
22
+ ;;
23
+ * )
24
+ echo " Unknown operation: $1 "
25
+ ;;
26
+ esac
You can’t perform that action at this time.
0 commit comments