diff --git a/slapos/recipe/librecipe/generic.py b/slapos/recipe/librecipe/generic.py
index 88e51abd9fc3f8efde4120ec8892c61fa112fa9f..fbe6e3658c68a434540edeb0ac888044914db39a 100644
--- a/slapos/recipe/librecipe/generic.py
+++ b/slapos/recipe/librecipe/generic.py
@@ -155,7 +155,7 @@ class GenericBaseRecipe(object):
           pidfile=%s
           if [ -e $pidfile ]; then
             pid=$(cat $pidfile)
-            if [[ ! -z $(ps -p "$pid" | grep $(basename %s)) ]]; then
+            if [ ! -z $(ps -p "$pid" | grep $(basename %s)) ]; then
               echo "Already running with pid $pid."
               exit 1
             else