Opened 10 years ago

Closed 8 years ago

#401 closed enhancement (fixed)

automate 'y' response needed when building MOBUFR

Reported by: Ian Culverwell Owned by: Ian Culverwell
Priority: trivial Milestone: 9.0
Component: External deps Version: 7.1
Keywords: MOBUFR Cc:

Description

ROPP8.0 beta reviewer Dave Offiler (UKMO) suggests:

- buildpack: when cleaning a previous MOBUFR build, the script 
requires a 'Y' keypress to continue (coming from the BUFR package 
'buildbufr' script). If possible, this keypress should be simulated 
in the buildpack call to buildbufr so as to allow unattended builds 
in this application.
[severity: trivial]

Change history (1)

comment:1 by Ian Culverwell, 8 years ago

Resolution: fixed
Status: newclosed

buildbufr now (bufr-24.0.2) only asks this question if "$ask = y":

if [[ "$uninstall" = "y" ]]; then
  echo
  if [[ $ask == "y" ]]; then
    read -p ">> Uninstalling BUFR files - Continue [y/n]? " -n 1 ans
    echo
  else
    echo ">> Uninstalling BUFR files..."
    ans="y"
  fi

(Previous versions (bufr-20.0.3) of buildbufr said

if [[ "$uninstall" = "y" ]]; then
  echo ">> Uninstalling BUFR files - Continue [y/n]? "
  read ans

)

But buildpack invokes ./buildbufr -u -y -p $PREFIX, and the -y option sets "$ask = n", so the question is no longer asked, and buildpack mobufr <comp> sails through without the need for user intervention.

Closing the ticket as 'fixed' (by the MetDB BUFR team if not by us.)

Note: See TracTickets for help on using tickets.