shellcheck/file
All checks were successful
/ job (push) Successful in 1m16s

This commit is contained in:
Marc Beninca 2024-12-02 00:46:30 +01:00
parent 45d93964e5
commit aa2c6df97e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,12 @@ rwx_shellcheck() {
echo ". \"${path}\"" >>"${file}" echo ". \"${path}\"" >>"${file}"
done done
rwx_ifs_unset rwx_ifs_unset
rwx_shellcheck_file "${file}"
rwx_remove "${file}"
}
rwx_shellcheck_file() {
local file="${1}"
shellcheck \ shellcheck \
--check-sourced \ --check-sourced \
--enable "all" \ --enable "all" \
@ -16,7 +22,6 @@ rwx_shellcheck() {
--external-sources \ --external-sources \
--shell "dash" \ --shell "dash" \
"${file}" "${file}"
rwx_remove "${file}"
} }
rwx_shellcheck_write() { rwx_shellcheck_write() {

View file

@ -77,5 +77,6 @@ $(cat "${RWX_ROOT_SYSTEM}/${file}")
rwx_ifs_unset rwx_ifs_unset
rwx_file_write "${target}" "${text}" rwx_file_write "${target}" "${text}"
rwx_shfmt "${target}" rwx_shfmt "${target}"
rwx_shellcheck_file "${target}"
fi fi
} }