From 0fd78b5b94026c109157940c02946d1c9e9cdc1a Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 6 Nov 2013 14:57:39 +0100 Subject: [PATCH] else -> elif --- selftest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selftest.sh b/selftest.sh index 67a961b..962c24a 100755 --- a/selftest.sh +++ b/selftest.sh @@ -12,7 +12,7 @@ if [ "x$DB" = "xmysql" ]; then mysql -u $dbuser ykksm < ykksm-db.sql dbrun="mysql -u $dbuser ykksm -e" -else [ "x$DB" = "xpgsql" ]; then +elif [ "x$DB" = "xpgsql" ]; then dbuser=postgres packages="$packages php5-pgsql" @@ -20,6 +20,9 @@ else [ "x$DB" = "xpgsql" ]; then psql -U $dbuser ykksm < ykksm-db.sql dbrun="psql -U $dbuser ykksm -c" +else + echo "unknown DB $DB" + exit 1 fi sudo apt-get update -qq