Fix SC2162

This commit is contained in:
Salt 2024-12-01 23:30:03 -06:00
parent d6a35ccfcf
commit 3830dfdc03

View File

@ -41,7 +41,7 @@ for file in /etc/shadow /etc/gshadow; do
# Prelim checks succeeded, move forward
echo "Parsing $file for junk"
# Read each line in the file to iterate over it
while read line; do
while read -r line; do
# This should never happen, but if for some reason we get an empty line,
# continue
[ -z "$line" ] && continue