mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 17:44:49 +02:00
Change 'function' style (#3364)
This commit is contained in:
parent
cf74127f78
commit
37ca0f9ba9
60 changed files with 233 additions and 466 deletions
|
@ -396,8 +396,7 @@ function _container_is_running() {
|
|||
#
|
||||
# @param ${1} = directory
|
||||
# @param ${2} = number of files that should be in ${1}
|
||||
function _count_files_in_directory_in_container()
|
||||
{
|
||||
function _count_files_in_directory_in_container() {
|
||||
local DIRECTORY=${1:?No directory provided}
|
||||
local NUMBER_OF_LINES=${2:?No line count provided}
|
||||
|
||||
|
|
|
@ -16,8 +16,7 @@ SHELLCHECK_VERSION='0.9.0'
|
|||
# shellcheck source=./../../target/scripts/helpers/log.sh
|
||||
source "${REPOSITORY_ROOT}/target/scripts/helpers/log.sh"
|
||||
|
||||
function _eclint
|
||||
{
|
||||
function _eclint() {
|
||||
if docker run --rm --tty \
|
||||
--volume "${REPOSITORY_ROOT}:/ci:ro" \
|
||||
--workdir "/ci" \
|
||||
|
@ -31,8 +30,7 @@ function _eclint
|
|||
fi
|
||||
}
|
||||
|
||||
function _hadolint
|
||||
{
|
||||
function _hadolint() {
|
||||
if docker run --rm --tty \
|
||||
--volume "${REPOSITORY_ROOT}:/ci:ro" \
|
||||
--workdir "/ci" \
|
||||
|
@ -46,8 +44,7 @@ function _hadolint
|
|||
fi
|
||||
}
|
||||
|
||||
function _shellcheck
|
||||
{
|
||||
function _shellcheck() {
|
||||
local F_SH F_BIN F_BATS
|
||||
|
||||
# File paths for shellcheck:
|
||||
|
@ -119,8 +116,7 @@ function _shellcheck
|
|||
fi
|
||||
}
|
||||
|
||||
function _main
|
||||
{
|
||||
function _main() {
|
||||
case "${1:-}" in
|
||||
( 'eclint' ) _eclint ;;
|
||||
( 'hadolint' ) _hadolint ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue