Fixed fixtures loading on trunk

pull/68/head
Andriy Kushnir (Orhideous) 2017-02-07 02:47:43 +02:00
parent e724e2f1d7
commit 4b26b848ed
No known key found for this signature in database
GPG Key ID: C5234D755464EDA6
1 changed files with 4 additions and 4 deletions

View File

@ -28,13 +28,13 @@ executable: /bin/sh
arguments:
- -c
- |
case "$1" in
case "$0" in
*.gz)
echo "Loading compressed data from $1"
echo "Loading compressed data from $0"
viewer=zcat
;;
*.sql)
echo "Loading raw data from $1"
echo "Loading raw data from $0"
viewer=cat
;;
*)
@ -42,4 +42,4 @@ arguments:
exit 1
;;
esac
$viewer $1 | mysql --database=$DB_DATABASE
$viewer $0 | mysql --user=root --database=$DB_DATABASE