summaryrefslogtreecommitdiff
path: root/bin/dmscripts
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-27 13:03:29 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-27 13:03:29 +0100
commit211569b573ff014badc68d392fe6d2c17f068d13 (patch)
treeb7c7005067adfc3978415003457c2729b85eef67 /bin/dmscripts
parent5c1338a567fd546377b92e5f83358aa017979041 (diff)
use sed instead of awk
Diffstat (limited to 'bin/dmscripts')
-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