Changeset 351


Ignore:
Timestamp:
Dec 19, 2011, 5:13:17 PM (13 years ago)
Author:
Rick van der Zwet
Message:

allow batch mode edits...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd-mgnt/system-update.sh

    r350 r351  
    2222  QUESTION=$1
    2323  DEFAULT=$2
    24   echo -n "$QUESTION? [$DEFAULT]: "; read INPUT
     24  if [ -n "$BATCH" ]; then
     25    INPUT="yes"
     26    echo "$QUESTION? [$DEFAULT]: $INPUT (BATCH MODE)"
     27  else
     28    echo -n "$QUESTION? [$DEFAULT]: "; read INPUT
     29  fi
     30
    2531  INPUT=${INPUT:-"${DEFAULT}"}
    2632  checkyesno INPUT || return 1 && return 0
Note: See TracChangeset for help on using the changeset viewer.