Fix shellcheck errors
Some checks are pending
sourcezap / shellcheck (push) Waiting to run

This commit is contained in:
0x1eef 2024-08-17 18:56:38 -03:00
parent fb47f6466b
commit 245fe9957a
2 changed files with 4 additions and 5 deletions

View file

@ -17,7 +17,7 @@ user=_sourcezap
if [ "$(id -u)" = "0" ]; then
pw userdel -n "${user}" || true
pw groupdel -n "${user}" || true
rm -rf /home/"${user}"/ || true
rm -rf /home/"${user:?}"/ || true
printok "done"
else
printerr "you must be root"

View file

@ -16,8 +16,7 @@ sharedir="${localbase}"/share/sourcezap
# main
src="${sharedir}"/doas.conf
dest="${localbase}"/etc/doas.conf
cat "${src}" |
while read -r line; do
while read -r line < "${src}"; do
if grep -q "${line}" "${dest}"; then
continue
fi