Ignore:
Timestamp:
Dec 31, 2008, 4:24:44 PM (10 years ago)
Author:
jrollins
Message:

fixed some lingering bashism that were causing things to fail with
dash/sh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cereal/src/cereal-admin

    r1173 r1190  
    4444# create session
    4545create() {
    46     if (( $# < 5 )) ; then
     46    if [ $# -lt 5 ] ; then
    4747        failure "Not enough input arguments.
    4848Type 'cereal-admin help' for more info."
     
    240240        elif is_running "$SESSION" ; then
    241241            echo "Session '$SESSION' is currently running."
    242             read -p "Really stop and destroy session? [Y|n]: " OK; OK=${OK:=Y}
     242            echo -n "Really stop and destroy session? [Y|n]: "
     243            read OK; OK=${OK:=Y}
    243244            if [ "$OK" = 'y' -o "$OK" = 'Y' ] ; then
    244245                if stop_session "$SESSION" ; then
     
    255256            fi
    256257        else
    257             read -p "Really destroy session '$SESSION'? [Y|n]: " OK; OK=${OK:=Y}
     258            echo -n "Really destroy session '$SESSION'? [Y|n]: "
     259            read OK; OK=${OK:=Y}
    258260            if [ "$OK" = 'y' -o "$OK" = 'Y' ] ; then
    259261                if destroy_session "$SESSION" ; then
Note: See TracChangeset for help on using the changeset viewer.