diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-04 15:57:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-04 15:57:52 +0200 |
commit | 659dabebe363e794b22d8e6b5d15854831ec847e (patch) | |
tree | 3e948d15a148ce12bc8cf7997b44d6523d8c647f /src | |
parent | 7bb83e129b3a1ced4dc3cd3947d9e0abd59df390 (diff) | |
download | pass-659dabebe363e794b22d8e6b5d15854831ec847e.tar.gz pass-659dabebe363e794b22d8e6b5d15854831ec847e.tar.bz2 pass-659dabebe363e794b22d8e6b5d15854831ec847e.zip |
Simplify sed to not use replacement.
Diffstat (limited to '')
-rwxr-xr-x | src/password-store.sh | 2 |
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 |