소스 검색

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

John Tyree 11 년 전
부모
커밋
ec8d735baa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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