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
This commit is contained in:
Antoine Beaupré 2008-04-24 15:35:33 +00:00
parent 30057bba56
commit cf484070de
6 changed files with 9 additions and 9 deletions

View File

@ -117,7 +117,7 @@ EOF
fi
# create a sed script to create/update the file
function set_value() {
set_value() {
var=$1
RET=$2
grep -Eq "^ *$var=" $MYSQL_CONFIG || echo "$var=" >> $MYSQL_CONFIG

View File

@ -47,7 +47,7 @@ fi
. "$CONFIG_FILE"
function doone {
doone {
read GID LOGIN
while [ "$LOGIN" ]
do

View File

@ -29,7 +29,7 @@
set -e
function dobck {
dobck {
local ext
local i
local old_ifs

View File

@ -74,7 +74,7 @@ done
#-------------------------
function set_messages
set_messages
#-------------------------
{
# Language-dependent messages
@ -95,7 +95,7 @@ function set_messages
#-------------------------
function trap_EXIT
trap_EXIT
#-------------------------
{
# Does some cleaning

View File

@ -74,7 +74,7 @@ done
#-------------------------
function set_messages
set_messages
#-------------------------
{
# Language-dependent messages
@ -106,7 +106,7 @@ function set_messages
#-------------------------
function trap_EXIT
trap_EXIT
#-------------------------
{
# Does some cleaning

View File

@ -73,7 +73,7 @@ done
#-------------------------
function set_messages
set_messages
#-------------------------
{
# Language-dependent messages
@ -93,7 +93,7 @@ function set_messages
#-------------------------
function trap_EXIT
trap_EXIT
#-------------------------
{
# Does some cleaning