Inline function in setup-doas

This commit is contained in:
0x1eef 2024-07-26 15:43:56 -03:00
parent 782d7c8eca
commit c6e83bea5e

View file

@ -11,8 +11,8 @@ sharedir="${localbase}"/share/sourcezap
# functions
. "${libexec}"/functions/print.sh
install_doasconf()
{
##
# main
src="${sharedir}"/doas.conf
dest="${localbase}"/etc/doas.conf
if grep -Fq "$(cat "${src}")" "${dest}"; then
@ -21,8 +21,3 @@ install_doasconf()
cat "${src}" >> "${dest}"
printok "${dest} updated"
fi
}
##
# main
install_doasconf