fix shellcheck source directive

This commit is contained in:
Jérémy Lecour 2020-04-01 11:23:35 +02:00 committed by Jérémy Lecour
parent 1f59065a17
commit e7e3683944
20 changed files with 20 additions and 20 deletions

View file

@ -4,7 +4,7 @@
# Usage: check
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
return=0

View file

@ -4,7 +4,7 @@
# Usage: firewall <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: help
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
cat <<EOF

View file

@ -4,7 +4,7 @@
# Usage: inc
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
date=$(date +"%Y-%m-%d-%H")

View file

@ -4,7 +4,7 @@
# Usage: init <jailname>
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: ip <jailname> [<ip>|all]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: is-on <jailname>
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: key <jailname> [<keyfile>]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -6,7 +6,7 @@
set -eu
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
[ -d "${JAILDIR}" ] || exit 0

View file

@ -4,7 +4,7 @@
# Usage: port <jailname> [<port>|auto]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: reload <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: remove <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -6,7 +6,7 @@
set -eu
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: rm
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
relative_date() {

View file

@ -4,7 +4,7 @@
# Usage: start <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: stats
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
mkdir -p "${INDEX_DIR}"

View file

@ -4,7 +4,7 @@
# Usage: status [<jailname>]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: stop <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: sync <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: update <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"