Should check for .git/config in each project
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 19:31:38 +0000 (21:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 19:31:38 +0000 (21:31 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
.jprojects.sh

index 397e672..8764853 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