summaryrefslogtreecommitdiff
path: root/bin/dmscripts/dmpass
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dmscripts/dmpass')
-rwxr-xr-xbin/dmscripts/dmpass2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dmscripts/dmpass b/bin/dmscripts/dmpass
index 2af798b..9d79660 100755
--- a/bin/dmscripts/dmpass
+++ b/bin/dmscripts/dmpass
@@ -4,7 +4,7 @@ lscmd="ls --group-directories-first"
dmenucmd="dmenu -l 4 -g 2"
while [ -d "${store}/${file}" ]
do
- choice="$($lscmd "${store}/${file}" | awk -F'.gpg' '{print $1}' | $dmenucmd)"
+ choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $dmenucmd)"
[ "$choice" ] || break
file="${file}/${choice}"
done