diff --git a/bin/project_new.sh b/bin/project_new.sh index b85bb35..d186c04 100755 --- a/bin/project_new.sh +++ b/bin/project_new.sh @@ -311,6 +311,15 @@ function request_git_server() { dialog_error_box "$head_error" "El tipo de servidor Git seleccionado no es válido" request_git_server fi + + # Si la selección es diferente de "none", verificar que exista la carpeta .developer en $HOME + if [ "$PROJECT_GIT_SERVER" != "none" ]; then + DEVELOPER_DIR="$HOME/.developer" + if [ ! -d "$DEVELOPER_DIR" ]; then + # Crear la carpeta .developer si no existe + mkdir -p "$DEVELOPER_DIR" + fi + fi } # Función para crear la estructura del proyecto