From 3e422bc2bf0e59044e6c0b9502c9bf30cc1c9258 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Tue, 16 Oct 2018 14:10:02 -0400 Subject: [PATCH] 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` --- scripts/web-add.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index b8813c9..b49b0d9 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -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