aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentAdd david skylar's gorilla import script. (diff)
downloadpassword-store-659dabebe363e794b22d8e6b5d15854831ec847e.tar.xz
password-store-659dabebe363e794b22d8e6b5d15854831ec847e.zip
Simplify sed to not use replacement.
Diffstat (limited to 'src/password-store.sh')
-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