[Major] fixed broken createBundle.sh

This commit is contained in:
Robert von Burg 2014-09-17 10:09:31 +02:00
parent 2a79b83544
commit 1366e827f6
1 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
projectName=strolch_bundle projectName=strolch_bundle
projectVersion=0.1.0-SNAPSHOT projectVersion=1.0.0-SNAPSHOT
DIST_STROLCH="/var/www/eitch/www.strolch.li/dist/snapshot" DIST_STROLCH="/var/www/eitch/www.strolch.li/dist/snapshot"
workDir="${PWD}/target/strolch_bundle" workDir="${PWD}/target/strolch_bundle"
projectsFile="${PWD}/projects.lst" projectsFile="${PWD}/projects.lst"
@ -35,7 +35,6 @@ fi
echo "INFO: Bundling projects..." echo "INFO: Bundling projects..."
# Now copy those packages to our work dir # Now copy those packages to our work dir
cd ..
while read project; do while read project; do
if [ "${project}" == "" ] ; then if [ "${project}" == "" ] ; then
continue; continue;
@ -50,7 +49,7 @@ while read project; do
exit 1 exit 1
fi fi
if ! cd "${name}" ; then if ! cd "../${name}" ; then
echo "ERROR: Could not switch to directory ${name}" echo "ERROR: Could not switch to directory ${name}"
exit 1 exit 1
fi fi
@ -78,8 +77,6 @@ while read project; do
echo "INFO: Project ${name} has no target, skipping." echo "INFO: Project ${name} has no target, skipping."
fi fi
cd ..
done < ${projectsFile} done < ${projectsFile}
cd ${workDir}/.. cd ${workDir}/..