commit 76b0711584e1fdaadf05ff85108f33c20c015bfd
parent 0d9f2de3a1e403d8ab12919cb4ba421a5d97de11
Author: Klemens Nanni <kl3@posteo.org>
Date: Tue, 24 May 2016 19:07:59 +0200
Find symlinks on 'show' as well
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tpm.sh b/tpm.sh
@@ -84,7 +84,8 @@ show() {
entry="${STORE_DIR}"/"${1}".gpg
if [ ! -r "${entry}" ]; then
- entry=$(find "${STORE_DIR}" -type f -iwholename "*${1}*".gpg)
+ entry=$(find "${STORE_DIR}" \( -type f -o -type l \) \
+ -iwholename "*${1}*".gpg)
[ -z "${entry}" ] && die 'No such entry.'