diff --git a/bin/detect b/bin/detect
index c9db66dde192de5f1cca132eb4d4e29d65fc5691..64b4a5e30ddf400a10a33732f921b08d4771e982 100755
--- a/bin/detect
+++ b/bin/detect
@@ -3,7 +3,7 @@
 
 BUILD_DIR=$1
 
-if [ ! -f $BUILD_DIR/requirements.txt ] || [ ! -f $BUILD_DIR/setup.py ]; then
+if [ ! -f $BUILD_DIR/requirements.txt ] && [ ! -f $BUILD_DIR/setup.py ]; then
   exit 1
 fi