Changeset 1568 for branches/locker-dev


Ignore:
Timestamp:
Jun 1, 2010, 2:37:23 AM (14 years ago)
Author:
adehnert
Message:
Optionally take addrend from SCRIPTS_INSTALL_ADDREND instead of prompting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/deploy/bin/onathena

    r1567 r1568  
    107107. "/mit/scripts/bin$scriptsdev/signup-web"
    108108
    109 echo
    110 echo "Your new copy of $sname will appear on the web at a URL"
    111 echo "that starts with http://$lname.scripts.mit.edu/"
    112 echo "Please decide upon a complete URL and enter it below."
    113 echo "You must enter one or more characters after mit.edu/"
    114 echo "The completed address must only contain a-z, 0-9, and /."
    115 printf "Desired address: http://$lname.scripts.mit.edu/"
    116 read addrend
     109if [ -n "$SCRIPTS_INSTALL_ADDREND" ]; then
     110    addrend=$SCRIPTS_INSTALL_ADDREND
     111else
     112    echo
     113    echo "Your new copy of $sname will appear on the web at a URL"
     114    echo "that starts with http://$lname.scripts.mit.edu/"
     115    echo "Please decide upon a complete URL and enter it below."
     116    echo "You must enter one or more characters after mit.edu/"
     117    echo "The completed address must only contain a-z, 0-9, and /."
     118    printf "Desired address: http://$lname.scripts.mit.edu/"
     119    read addrend
     120fi
    117121
    118122addrend=`perl -0e 'print $ARGV[0] =~ /^([\w\/-]*[\w-])\/*$/' -- "$addrend"`
Note: See TracChangeset for help on using the changeset viewer.