convert echo to printf
This commit is contained in:
parent
4bf9e85448
commit
ff0fa5eebd
@ -90,7 +90,7 @@ password_files="$(find . -name "*.gpg" | sed "s/^\.\/\(.*\)\.gpg$/\1/")"
|
|||||||
password=$(printf '%s\n' "$password_files" | wofi --dmenu)
|
password=$(printf '%s\n' "$password_files" | wofi --dmenu)
|
||||||
[ -n "$password" ] || exit
|
[ -n "$password" ] || exit
|
||||||
field_list="$(_parse_fields)"
|
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
|
if [ "$squash" -eq 1 ] && [ "$field_count" -eq 1 ]; then
|
||||||
field="password"
|
field="password"
|
||||||
elif [ "$autotype" -ne 1 ]; then
|
elif [ "$autotype" -ne 1 ]; then
|
||||||
|
Reference in New Issue
Block a user