Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
transparencia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
C3SL
transparencia
Commits
939919bf
Commit
939919bf
authored
May 22, 2017
by
Cristian Weiland
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue/68' into 'master'
Issue #68: Fix bug in variable checking See merge request !28
parents
04d42b25
c2b9209e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
scripts/expenses/insert_expenses.sh
scripts/expenses/insert_expenses.sh
+4
-4
scripts/travel_allowances/insert_travel_allowances.sh
scripts/travel_allowances/insert_travel_allowances.sh
+3
-3
scripts/workers/insert_register_payment.sh
scripts/workers/insert_register_payment.sh
+3
-3
No files found.
scripts/expenses/insert_expenses.sh
View file @
939919bf
...
...
@@ -21,16 +21,16 @@ fi
source
./config.sh
# Check if all variables in config file are set:
if
[
-z
${
index
}
]
;
then
if
[
-z
"
${
index
}
"
]
;
then
echo
"Var 'index' is unset. Set it in file 'scripts/expenses/config.sh'."
;
exit
;
fi
if
[
-z
${
host
}
]
;
then
if
[
-z
"
${
host
}
"
]
;
then
echo
"Var 'host' is unset. Set it in file 'scripts/expenses/config.sh'."
;
exit
;
fi
if
[
-z
${
columnName
}
]
;
then
echo
"Var '
host
' is unset. Set it in file 'scripts/expenses/config.sh'."
;
if
[
-z
"
${
columnName
}
"
]
;
then
echo
"Var '
columnName
' is unset. Set it in file 'scripts/expenses/config.sh'."
;
exit
;
fi
...
...
scripts/travel_allowances/insert_travel_allowances.sh
View file @
939919bf
...
...
@@ -20,15 +20,15 @@ fi
source
./config.sh
# Check if all variables in config file are set:
if
[
-z
${
index
}
]
;
then
if
[
-z
"
${
index
}
"
]
;
then
echo
"Var 'index' is unset. Set it in file 'scripts/travel_allowance/config.sh'."
;
exit
;
fi
if
[
-z
${
host
}
]
;
then
if
[
-z
"
${
host
}
"
]
;
then
echo
"Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'."
;
exit
;
fi
if
[
-z
${
columnName
}
]
;
then
if
[
-z
"
${
columnName
}
"
]
;
then
echo
"Var 'host' is unset. Set it in file 'scripts/travel_allowance/config.sh'."
;
exit
;
fi
...
...
scripts/workers/insert_register_payment.sh
View file @
939919bf
...
...
@@ -23,15 +23,15 @@ fi
source
./config.sh
if
[
-z
${
index
}
]
;
then
if
[
-z
"
${
index
}
"
]
;
then
echo
"Var 'index' is unset. Set it in file 'scripts/workers/config.sh'."
;
exit
;
fi
if
[
-z
${
host
}
]
;
then
if
[
-z
"
${
host
}
"
]
;
then
echo
"Var 'host' is unset. Set it in file 'scripts/workers/config.sh'."
;
exit
;
fi
if
[
-z
${
columnName
}
]
;
then
if
[
-z
"
${
columnName
}
"
]
;
then
echo
"Var 'columnName' is unset. Set it in file 'scripts/workers/config.sh'."
;
exit
;
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment