fix squashing by looking for 0 newlines instead of 1
This commit is contained in:
parent
ff0fa5eebd
commit
397354e1ec
@ -91,7 +91,7 @@ password=$(printf '%s\n' "$password_files" | wofi --dmenu)
|
||||
[ -n "$password" ] || exit
|
||||
field_list="$(_parse_fields)"
|
||||
field_count="$(printf '%s' "$field_list" | wc -l)"
|
||||
if [ "$squash" -eq 1 ] && [ "$field_count" -eq 1 ]; then
|
||||
if [ "$squash" -eq 1 ] && [ "$field_count" -eq 0 ]; then
|
||||
field="password"
|
||||
elif [ "$autotype" -ne 1 ]; then
|
||||
field=$(printf '%s\n' "$field_list" | wofi --dmenu)
|
||||
|
Reference in New Issue
Block a user