source
This commit is contained in:
parent
4b9f7df102
commit
0eaebdf401
3 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
disable=1090,3043
|
disable=3043
|
||||||
enable=all
|
enable=all
|
||||||
external-sources=true
|
external-sources=true
|
||||||
shell=sh
|
shell=sh
|
||||||
|
|
|
@ -63,6 +63,7 @@ main_source_directory() {
|
||||||
_sh_main_log "${module%.sh}"
|
_sh_main_log "${module%.sh}"
|
||||||
module="${path}/${module}"
|
module="${path}/${module}"
|
||||||
if [ "${module}" != "${ENV}" ]; then
|
if [ "${module}" != "${ENV}" ]; then
|
||||||
|
# shellcheck disable=1090
|
||||||
. "${module}"
|
. "${module}"
|
||||||
cmd="$(_sh_main_commands "${module}")"
|
cmd="$(_sh_main_commands "${module}")"
|
||||||
if [ -n "${cmd}" ]; then
|
if [ -n "${cmd}" ]; then
|
||||||
|
|
|
@ -33,6 +33,7 @@ sh_shell_configure() {
|
||||||
local root="/usr/share/bash-completion"
|
local root="/usr/share/bash-completion"
|
||||||
local file="bash_completion"
|
local file="bash_completion"
|
||||||
local path="${root}/${file}"
|
local path="${root}/${file}"
|
||||||
|
# shellcheck disable=1090
|
||||||
[ -f "${path}" ] && . "${path}"
|
[ -f "${path}" ] && . "${path}"
|
||||||
root="${root}/completions"
|
root="${root}/completions"
|
||||||
if [ -d "${root}" ]; then
|
if [ -d "${root}" ]; then
|
||||||
|
@ -41,6 +42,7 @@ sh_shell_configure() {
|
||||||
"tar"
|
"tar"
|
||||||
for file in "${@}"; do
|
for file in "${@}"; do
|
||||||
path="${root}/${file}"
|
path="${root}/${file}"
|
||||||
|
# shellcheck disable=1090
|
||||||
[ -f "${path}" ] && . "${path}"
|
[ -f "${path}" ] && . "${path}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue