Jepp, no more these projects
[jprojects-scripts.git] / fix-project-remotes.sh
index f4bd38b..1760685 100755 (executable)
@@ -19,8 +19,13 @@ MEDIA_NAME2="Transport"
 MEDIA_PATH="Java Project"
 
 for project in ${LIST}; do
-       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       if [ "${project}" = "jprojects-scripts" ]
        then
+               echo "$0: Skipping jprojects-scripts ..."
+               continue
+       elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       then
+               echo "$0: Project '${project}' does not exist."
                continue
        fi
 
@@ -165,7 +170,7 @@ for project in ${LIST}; do
 
                if [ -n "${UPSTREAM_REMOTE1}" ]
                then
-                       echo "$0: Remote '${WANTED_NAME1}' found in '${project}'."
+                       echo "$0: Wanted remote '${WANTED_NAME1}' already found in '${project}'."
                else
                        echo "$0: No wanted '${WANTED_NAME1}' in '${project}'. Adding ..."
                        git remote add "${WANTED_NAME1}" "${GIT_URL1}" --track "${GIT_BRANCH}" || exit 255