From ff0fa5eebd0c86a12f0ec65cae820e5daa7b244a Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 1 Dec 2021 13:46:49 -0500 Subject: [PATCH] convert echo to printf --- wofi-pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wofi-pass b/wofi-pass index eb5b862..197aeae 100755 --- a/wofi-pass +++ b/wofi-pass @@ -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