diff --git a/plugins/templates/before-script-redis.yml b/plugins/templates/before-script-redis.yml
index 9da2e6f7eefce0089a2603c1ee29f9a2f189201f..a285a458f991016bf84d0da56a73699e2390ba48 100644
--- a/plugins/templates/before-script-redis.yml
+++ b/plugins/templates/before-script-redis.yml
@@ -19,7 +19,7 @@ before_script:
   - |
     if [[ $(php -v) =~ "PHP 5.6" ]]; then
       pecl install redis-2.2.8
-    elif
+    else
       pecl install redis
     fi
   - echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini