Adds shellcheck source comments

This will allow someone to use shellcheck(1) to automatically check
any referenced code using `shellcheck -x scripts/web-add.sh`
This commit is contained in:
Patrick Marchand 2018-10-16 14:10:02 -04:00
parent 2125523cd8
commit 3e422bc2bf
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ PHP_VERSIONS=()
# Utiliser ce fichier pour redefinir la valeur des variables ci-dessus
config_file="/etc/evolinux/web-add.conf"
# shellcheck source=/etc/evolinux/web-add.conf
[ -r $config_file ] && . $config_file
usage() {
@ -228,6 +229,7 @@ create_www_account() {
############################################################################
if [ -f $PRE_LOCAL_SCRIPT ]; then
# shellcheck source=/usr/share/scripts/evoadmin/web-add.pre-local.sh
source $PRE_LOCAL_SCRIPT
fi
@ -479,6 +481,7 @@ EOT
############################################################################
if [ -f $LOCAL_SCRIPT ]; then
# shellcheck source=/usr/share/scripts/evoadmin/web-add.local.sh
source $LOCAL_SCRIPT
fi