This commit is contained in:
parent
45d93964e5
commit
aa2c6df97e
2 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ rwx_shellcheck() {
|
|||
echo ". \"${path}\"" >>"${file}"
|
||||
done
|
||||
rwx_ifs_unset
|
||||
rwx_shellcheck_file "${file}"
|
||||
rwx_remove "${file}"
|
||||
}
|
||||
|
||||
rwx_shellcheck_file() {
|
||||
local file="${1}"
|
||||
shellcheck \
|
||||
--check-sourced \
|
||||
--enable "all" \
|
||||
|
@ -16,7 +22,6 @@ rwx_shellcheck() {
|
|||
--external-sources \
|
||||
--shell "dash" \
|
||||
"${file}"
|
||||
rwx_remove "${file}"
|
||||
}
|
||||
|
||||
rwx_shellcheck_write() {
|
||||
|
|
|
@ -77,5 +77,6 @@ $(cat "${RWX_ROOT_SYSTEM}/${file}")
|
|||
rwx_ifs_unset
|
||||
rwx_file_write "${target}" "${text}"
|
||||
rwx_shfmt "${target}"
|
||||
rwx_shellcheck_file "${target}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue