25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Workaround to support ShellCheck older than 0.8.0

This commit is contained in:
Badlop 2021-12-23 12:11:30 +01:00
parent 694d80b7fa
commit e2b7717dd9
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ jobs:
shellcheck test/ejabberd_SUITE_data/gencerts.sh
shellcheck tools/captcha.sh
shellcheck ejabberd.init.template
shellcheck ejabberdctl.template
shellcheck -x ejabberdctl.template
- name: Get previous Erlang/OTP
uses: ErlGang/setup-erlang@master

View File

@ -62,6 +62,7 @@ done
: "${EJABBERDCTL_CONFIG_PATH:="$ETC_DIR/ejabberdctl.cfg"}"
# Allows passing extra Erlang command-line arguments in vm.args file
: "${VMARGS:="$ETC_DIR/vm.args"}"
# shellcheck source=ejabberdctl.cfg.example
[ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH"
[ -n "$ERLANG_NODE_ARG" ] && ERLANG_NODE="$ERLANG_NODE_ARG"
[ "$ERLANG_NODE" = "${ERLANG_NODE%.*}" ] && S="-s"