# HG changeset patch # User HackBot # Date 1366238585 0 # Node ID f4a2725a0dcbe4c7e42d2d95a1a9dcc5a25f736e # Parent 705d5d05d8d13e3bd505600040cf74038b73b875 sed -i \'s/lines=\\([$].*\\)/lines="\\1"/\' bin/pastelog diff -r 705d5d05d8d1 -r f4a2725a0dcb bin/pastelog --- a/bin/pastelog Wed Apr 17 21:54:28 2013 +0000 +++ b/bin/pastelog Wed Apr 17 22:43:05 2013 +0000 @@ -16,7 +16,7 @@ if expr "$1" + 0 >/dev/null 2>&1; then pasterandom "$1" else - lines=$(timeout 25 grep -P -i -- "$1" ????-??-??.txt | head -n 301) + lines="$(timeout 25 grep -P -i -- "$1" ????-??-??.txt | head -n 301)" { echo "$lines" | head -n 300 [ $(echo "$lines" | wc -l) -eq 301 ] && echo "[too many lines; stopping]"