Explorar el Código

fix install_vendors.sh file to check if vendor folder exist

Gordon Franke hace 15 años
padre
commit
4d3119e0fe
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      install_vendors.sh

+ 6 - 1
install_vendors.sh

@@ -1,7 +1,12 @@
 #!/bin/sh
 
 # initialization
-rm -rf vendor/*
+if [ -d "vendor" ]; then
+  rm -rf vendor/*
+else
+  mkdir vendor
+fi
+
 cd vendor
 
 # Doctrine