convert echo to printf

This commit is contained in:
Joel Beckmeyer 2021-12-01 13:46:49 -05:00
parent 4bf9e85448
commit ff0fa5eebd
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ password_files="$(find . -name "*.gpg" | sed "s/^\.\/\(.*\)\.gpg$/\1/")"
password=$(printf '%s\n' "$password_files" | wofi --dmenu)
[ -n "$password" ] || exit
field_list="$(_parse_fields)"
field_count="$(echo "$field_list" | wc -l)"
field_count="$(printf '%s' "$field_list" | wc -l)"
if [ "$squash" -eq 1 ] && [ "$field_count" -eq 1 ]; then
field="password"
elif [ "$autotype" -ne 1 ]; then