Use consistent syntax for Bash function declarations

This commit is contained in:
Kamil Śliwak
2021-11-08 16:34:07 +01:00
parent bc2402e76f
commit 7ccdbd5b08
17 changed files with 57 additions and 45 deletions
+4 -2
View File
@@ -83,7 +83,8 @@ for arg in "$@"; do
esac
done
show_output_if() {
function show_output_if
{
local VAR=${1}
if [ -n "${VAR}" ]; then
echo "${SOL_FILE}"
@@ -102,7 +103,8 @@ if [ ! -f "${SOLC}" ]; then
exit 1
fi
test_file() {
function test_file
{
local SOL_FILE
local OUTPUT
SOL_FILE=${1}