From 659dabebe363e794b22d8e6b5d15854831ec847e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 4 Apr 2013 15:57:40 +0200 Subject: Simplify sed to not use replacement. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-59-g8ed1b