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}"
|
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() {
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue