Added the ability to have spaces in password names

This commit is contained in:
vanten-s 2024-04-07 22:44:47 +02:00
parent 257086fc08
commit 225b0f7e4e
Signed by: vanten-s
GPG key ID: DE3060396884D3F2

View file

@ -2,7 +2,7 @@
folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | fuzzel -d -i)" folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | fuzzel -d -i)"
if [ -z $folder ]; if [ -z "$folder" ];
then then
exit exit
else else
@ -11,7 +11,7 @@ fi
choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | fuzzel -d -i)" choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | fuzzel -d -i)"
if [ -z $choice ]; if [ -z "$choice" ];
then then
exit exit
else else