Ignore:
Timestamp:
Feb 9, 2008, 5:13:45 AM (16 years ago)
Author:
broder
Message:
Fixes #6 in trac (Install scripts should validate locker name)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/signup-minimal

    r629 r640  
    3232        echo "Please enter the name of the selected locker below."
    3333        echo "(For the locker /mit/sipb, you would enter sipb)."
    34         printf "Locker name: "
    35         read lname
     34        while printf "Locker name: "; read lname; ! attach "$lname" 2>/dev/null; do
     35                echo "$lname is not a valid locker name."
     36        done
    3637        lroot="/mit/$lname"
    3738    else
     
    4445    lname=$1
    4546  fi
    46 fi
    47 
    48 attach "$lname" 2>/dev/null
    49 
    50 if [ ! -d "/mit/$lname" ]; then
    51   echo
    52   echo "ERROR:"
    53   echo "Cannot find locker <$lname>."
    54   exit 1
    5547fi
    5648
Note: See TracChangeset for help on using the changeset viewer.