Browse Source

fix squashing by looking for 0 newlines instead of 1

master
Joel Beckmeyer 9 months ago
parent
commit
397354e1ec
  1. 2
      wofi-pass

2
wofi-pass

@ -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)

Loading…
Cancel
Save