summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-09-06 19:41:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-06 19:42:05 +0200
commit075c8da06b8df6da8dc98cbf558047857b40c0b7 (patch)
treecf058d8ce652fdb908a676c07f2008764e1a116e
parentf861fe5f91dbd8069e05b2ade3dfab996bb37019 (diff)
downloadpass-075c8da06b8df6da8dc98cbf558047857b40c0b7.tar.gz
pass-075c8da06b8df6da8dc98cbf558047857b40c0b7.tar.bz2
pass-075c8da06b8df6da8dc98cbf558047857b40c0b7.zip
Use --noreport instead of head -n -2 for tree so that it works on mac.
Reported-by: Theo Belaire <tbelaire@uwaterloo.ca>
-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 db1b5ce..d373a39 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -121,7 +121,7 @@ case "$command" in
else
echo $path
fi
- tree "$PREFIX/$path" | tail -n +2 | head -n -2 | sed 's/\(.*\)\.gpg$/\1/';
+ tree --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\(.*\)\.gpg$/\1/'
else
passfile="$PREFIX/$path.gpg"
if ! [[ -f $passfile ]]; then