On  0, Alan Malta Rodrigues <notifications@github.com> wrote:
> > +host=`hostname`
> > +
> > +# download metadata and stage it for update
> > +# change is applied on next updatedata() call
> > +fetchmaps(){
> > +  set -e
> > +  # fetch DAS maps
> > +  DASMAPS_URL="https://raw.github.com/dmwm/DASMaps/master/js"
> > +  DASMAPS_DIR=/tmp/DASMaps
> > +  $DAS_ROOT/bin/das_js_fetch $DASMAPS_URL $DASMAPS_DIR
> > +
> > +  # validate DAS maps
> > +  $DAS_ROOT/bin/das_js_validate $DASMAPS_DIR
> > +
> > +  # clean-up STEGEDIR area
> > +  rm -f $STAGEDIR/*.js $STAGEDIR/*-schema-stamp
> 
> How do we know whether we can proceed with this deletion or not? Is the validate script (line 68) returning an exit code != 0 when the validation fails?

yes validation will exit with non zero status if something bad happened, see
https://github.com/dmwm/DAS/blob/master/bin/das_js_validate

(it also sets set -e and if you call one bash script from another where set -e
is set your outer script will get non-zero status).

> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/dmwm/deployment/pull/118/files#r10799824