Ignore:
Timestamp:
Oct 13, 2007, 9:21:40 PM (17 years ago)
Author:
andersk
Message:
Things that give me nightmares, volume 458.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/scripts-start

    r154 r458  
    44echo "What piece of software would you like to install?"
    55echo
    6 echo 1. MediaWiki
    7 echo 2. WordPress
    8 echo 3. Joomla
    9 echo 4. e107
    10 echo 5. Gallery2
    11 echo 6. phpBB
    12 echo 7. Advanced Guest Book
    13 echo 8. PHP iCalendar
     6echo "1. MediaWiki"
     7echo "2. WordPress"
     8echo "3. Joomla"
     9echo "4. e107"
     10echo "5. Gallery2"
     11echo "6. phpBB"
     12echo "7. Advanced Guest Book"
     13echo "8. PHP iCalendar"
    1414echo
    1515printf "Please enter a number 1-8: "
     
    1818
    1919attach scripts 2>/dev/null
    20 if [ "$num" -eq 1 ]; then
    21   . /mit/scripts/bin$scriptsdev/scripts-mediawiki
    22 elif [ "$num" -eq 2 ]; then
    23   . /mit/scripts/bin$scriptsdev/scripts-wordpress
    24 elif [ "$num" -eq 3 ]; then
    25   . /mit/scripts/bin$scriptsdev/scripts-joomla
    26 elif [ "$num" -eq 4 ]; then
    27   . /mit/scripts/bin$scriptsdev/scripts-e107
    28 elif [ "$num" -eq 5 ]; then
    29   . /mit/scripts/bin$scriptsdev/scripts-gallery2
    30 elif [ "$num" -eq 6 ]; then
    31   . /mit/scripts/bin$scriptsdev/scripts-phpbb
    32 elif [ "$num" -eq 7 ]; then
    33   . /mit/scripts/bin$scriptsdev/scripts-advancedbook
    34 elif [ "$num" -eq 8 ]; then
    35   . /mit/scripts/bin$scriptsdev/scripts-phpical
     20if [ "$num" = 1 ]; then
     21  . "/mit/scripts/bin$scriptsdev/scripts-mediawiki"
     22elif [ "$num" = 2 ]; then
     23  . "/mit/scripts/bin$scriptsdev/scripts-wordpress"
     24elif [ "$num" = 3 ]; then
     25  . "/mit/scripts/bin$scriptsdev/scripts-joomla"
     26elif [ "$num" = 4 ]; then
     27  . "/mit/scripts/bin$scriptsdev/scripts-e107"
     28elif [ "$num" = 5 ]; then
     29  . "/mit/scripts/bin$scriptsdev/scripts-gallery2"
     30elif [ "$num" = 6 ]; then
     31  . "/mit/scripts/bin$scriptsdev/scripts-phpbb"
     32elif [ "$num" = 7 ]; then
     33  . "/mit/scripts/bin$scriptsdev/scripts-advancedbook"
     34elif [ "$num" = 8 ]; then
     35  . "/mit/scripts/bin$scriptsdev/scripts-phpical"
    3636else
    37   echo ERROR:
    38   echo You must enter a number 1 through 8.
     37  echo "ERROR:"
     38  echo "You must enter a number 1 through 8."
    3939  exit 1
    4040fi
Note: See TracChangeset for help on using the changeset viewer.