Changeset 733 for locker/bin


Ignore:
Timestamp:
Apr 22, 2008, 11:55:04 PM (14 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/bin/signup-minimal

    r726 r733  
    2525    read whofor
    2626    if [ "$whofor" = 1 ]; then
    27         lname=$USER
    28         lroot=$HOME
     27        lname="${ATHENA_USER:-$USER}"
    2928    elif [ "$whofor" = 2 ]; then
    3029        echo
     
    3231        echo "Please enter the name of the selected locker below."
    3332        echo "(For the locker /mit/sipb, you would enter sipb)."
    34         while true; do
    35             printf "Locker name: "
    36             read lname
    37             if attach "$lname"; then
    38                 break
    39             fi
    40             echo "$lname is not a valid locker name."
    41         done
    42         lroot="/mit/$lname"
     33        printf "Locker name: "
     34        read lname
    4335    else
    4436        echo
     
    4739        exit 1
    4840    fi
     41    while true; do
     42        if attach "$lname"; then
     43            break
     44        fi
     45        echo "$lname is not a valid locker name."
     46        printf "Locker name: "
     47        read lname
     48    done
    4949  else
    50     lname=$1
     50    lname="$1"
    5151  fi
    5252fi
     53lroot="/mit/$lname"
    5354
    5455attach "$lname" 2>/dev/null
Note: See TracChangeset for help on using the changeset viewer.