Should check for .git/config in each project
[jprojects-scripts.git] / .jprojects.sh
index 397e672f7c88f44d7b89d81a6cd61d5c96569293..8764853d5534bf76e398ae344b211e4b977475d8 100644 (file)
@@ -35,7 +35,7 @@ for project in ${LIST}; do
        then
                echo "$0: Project '${project}' not created."
                exit 1
-       elif [ ! -d "${project}" ]
+       elif [ ! -f "${project}/.git/config" ]
        then
                echo "$0: Project '${project}' is no GIT project."
                exit 1