summaryrefslogtreecommitdiff
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-04-04 15:57:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-04-04 15:57:52 +0200
commit659dabebe363e794b22d8e6b5d15854831ec847e (patch)
tree3e948d15a148ce12bc8cf7997b44d6523d8c647f /src/password-store.sh
parent7bb83e129b3a1ced4dc3cd3947d9e0abd59df390 (diff)
downloadpass-659dabebe363e794b22d8e6b5d15854831ec847e.tar.gz
pass-659dabebe363e794b22d8e6b5d15854831ec847e.tar.bz2
pass-659dabebe363e794b22d8e6b5d15854831ec847e.zip
Simplify sed to not use replacement.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 99010e9..d7b00b7 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -213,7 +213,7 @@ case "$command" in
else
echo "${path%\/}"
fi
- tree -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\(.*\)\.gpg$/\1/'
+ tree -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//'
else
passfile="$PREFIX/$path.gpg"
if [[ ! -f $passfile ]]; then