exit before deletion if the unit tree script fails

This commit is contained in:
Gunter Labes 2008-03-28 15:27:38 +00:00
parent c7d072c890
commit ee4d56a522

View file

@ -44,7 +44,7 @@ if [ "$VERSION" != "trunk" ]; then
# make sure we update with the right version
sed -i -e "s/\(my \$version = '\).*\(';\)/\1$VERSION\2/" units.pl
fi
./units.pl
./units.pl || exit 1
rm -rf $SITE/$VERSION
# move the generated files to their proper place
mv files $SITE/$VERSION