Commit cf484070 authored by Antoine Beaupré's avatar Antoine Beaupré

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
parent 30057bba
......@@ -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
......
......@@ -47,7 +47,7 @@ fi
. "$CONFIG_FILE"
function doone {
doone {
read GID LOGIN
while [ "$LOGIN" ]
do
......
......@@ -29,7 +29,7 @@
set -e
function dobck {
dobck {
local ext
local i
local old_ifs
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment