Ignore:
Timestamp:
Apr 22, 2008, 11:55:04 PM (16 years ago)
Author:
geofft
Message:
* Sync the code structure in signup-minimal and onathena
* Deal with $ATHENA_USER for Debathena
* Always attempt to attach $lname
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/deploy/bin/onathena

    r524 r733  
    6363read whofor
    6464if [ "$whofor" = 1 ]; then
    65     lname=$USER
    66     lroot=$HOME
     65    lname="${ATHENA_USER:-$USER}"
    6766elif [ "$whofor" = 2 ]; then
    6867    echo
     
    7372    printf "Locker name: "
    7473    read lname
    75     lroot="/mit/$lname"
    7674else
    7775    echo
     
    8078    exit 1
    8179fi
     80while true; do
     81    if attach "$lname"; then
     82        break
     83    fi
     84    echo "$lname is not a valid locker name."
     85    printf "Locker name: "
     86    read lname
     87done
     88lroot="/mit/$lname"
    8289
    8390echo
Note: See TracChangeset for help on using the changeset viewer.