Changeset 2169


Ignore:
Timestamp:
04/24/08 17:35:33 (5 years ago)
Author:
anarcat
Message:

remove a bashism: don't use the function keyword to declare functions,
it's not POSIX.

Note that there might be some other bashisms around, but this is the
only one I am aware of now, so...

Closes: #1122

Location:
alternc/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/install/mysql.sh

    r2168 r2169  
    118118 
    119119# create a sed script to create/update the file 
    120 function set_value() { 
     120set_value() { 
    121121    var=$1 
    122122    RET=$2 
  • alternc/trunk/src/fixperms.sh

    r2117 r2169  
    4848. "$CONFIG_FILE" 
    4949 
    50 function doone { 
     50doone { 
    5151    read GID LOGIN 
    5252    while [ "$LOGIN" ]  
  • alternc/trunk/src/sqlbackup.sh

    r2167 r2169  
    3030set -e 
    3131 
    32 function dobck { 
     32dobck { 
    3333    local ext 
    3434    local i 
  • alternc/trunk/tools/top_ftp_users

    r1605 r2169  
    7575 
    7676#------------------------- 
    77 function set_messages 
     77set_messages 
    7878#------------------------- 
    7979{ 
     
    9696 
    9797#------------------------- 
    98 function trap_EXIT 
     98trap_EXIT 
    9999#------------------------- 
    100100{ 
  • alternc/trunk/tools/top_http_users

    r2117 r2169  
    7575 
    7676#------------------------- 
    77 function set_messages 
     77set_messages 
    7878#------------------------- 
    7979{ 
     
    107107 
    108108#------------------------- 
    109 function trap_EXIT 
     109trap_EXIT 
    110110#------------------------- 
    111111{ 
  • alternc/trunk/tools/top_mysql_users

    r1605 r2169  
    7474 
    7575#------------------------- 
    76 function set_messages 
     76set_messages 
    7777#------------------------- 
    7878{ 
     
    9494 
    9595#------------------------- 
    96 function trap_EXIT 
     96trap_EXIT 
    9797#------------------------- 
    9898{ 
Note: See TracChangeset for help on using the changeset viewer.