Explorar o código

Don't repeat the ### OUTPUT ### line

John Tyree %!s(int64=11) %!d(string=hai) anos
pai
achega
ec8d735baa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      append_output.sh

+ 1 - 1
append_output.sh

@@ -2,7 +2,7 @@
 
 set -e
 
-src=$(sed -n -e "0,/### OUTPUT ###/p" "$1")
+src=$(sed -n -e '/### OUTPUT ###/,$!p' "$1")
 output=$(python "$1" | sed 's/^/# /')
 
 # These are done separately to avoid having to insert a newline, which causes