From 075c8da06b8df6da8dc98cbf558047857b40c0b7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 6 Sep 2012 19:41:05 +0200 Subject: Use --noreport instead of head -n -2 for tree so that it works on mac. Reported-by: Theo Belaire --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3