summaryrefslogtreecommitdiff
path: root/bin/id
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-04-03 16:41:44 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-04-03 16:41:44 +0100
commita5a6e9903255c084c32251c60dcc2ccafa31a419 (patch)
treeafa8f8a77a542ebc29a19b76f04c6bdc792703e9 /bin/id
parentfa411ce822be49f676bfe0ee48850eb53d98f54e (diff)
Correct mistake in bin/id
Diffstat (limited to 'bin/id')
-rwxr-xr-xbin/id1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/id b/bin/id
index d42bb39..7dad85d 100755
--- a/bin/id
+++ b/bin/id
@@ -1,5 +1,6 @@
#! /bin/bash
PWD_DIR="$HOME/.password-store"
+[[ ! -z $(readlink ${PWD_DIR}) ]] && PWD_DIR=$(readlink ${PWD_DIR})
PASSWORDS=$(locate "${PWD_DIR}/**/*.gpg")
TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:")
basename $TARGET .gpg | xclip -i