]> git.armaanb.net Git - bin.git/commitdiff
passmenu: fix hardcoded username
authorArmaan Bhojwani <me@armaanb.net>
Wed, 12 May 2021 01:22:45 +0000 (21:22 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 12 May 2021 01:22:45 +0000 (21:22 -0400)
Added this for testing and forgot to remove it...

passmenu

index a3bdeecb30e21a7d6ed05e494bb18920a7f3dc25..44681efce03b9fcccc174b3867885de69cca1735 100755 (executable)
--- a/passmenu
+++ b/passmenu
@@ -16,7 +16,7 @@ password=$(find "$prefix" -name '*.gpg' | awk -v prefix="$prefix" \
 [ -n "$password" ] || exit
 
 if [ $typeit -eq 0 ]; then
-       pash show yacy/admin | head -n 1 | xclip -sel c
+       pash show "$password" | head -n 1 | xclip -sel c
 else
        pash show "$password" | { IFS= read -r pass; printf %s "$pass"; } |
                xdotool type --clearmodifiers --file -