diff --git a/install.sh b/install.sh
index d2e565019fbcb990d2ac7c7fb298780888b0b801..171c0e73fec942164773ae6fe5a1507a801edd85 100755
--- a/install.sh
+++ b/install.sh
@@ -131,7 +131,7 @@ else
   fi
 fi
 
-if [ -z $SIF -o ! -f $SIF ]; then
+if [ -z $SIF -o ! -f $SIF -o ! -d $SIF ]; then
   echo "ERROR: no singularity image found"
 else
   echo " - Deployed ${CONTAINER} image: $SIF"