exit before deletion if the unit tree script fails
This commit is contained in:
parent
c7d072c890
commit
ee4d56a522
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue