From 225b0f7e4ed4743a8639b5c10388492080c30477 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Sun, 7 Apr 2024 22:44:47 +0200 Subject: [PATCH] Added the ability to have spaces in password names --- dotfiles/scripts/usernames.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/scripts/usernames.sh b/dotfiles/scripts/usernames.sh index ef694ae..0e639bc 100755 --- a/dotfiles/scripts/usernames.sh +++ b/dotfiles/scripts/usernames.sh @@ -2,7 +2,7 @@ folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | fuzzel -d -i)" -if [ -z $folder ]; +if [ -z "$folder" ]; then exit else @@ -11,7 +11,7 @@ fi choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | fuzzel -d -i)" -if [ -z $choice ]; +if [ -z "$choice" ]; then exit else