Skip to content

Commit ec8d735

Browse files
committed
Don't repeat the ### OUTPUT ### line
1 parent 9722b48 commit ec8d735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎append_output.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
src=$(sed -n -e "0,/### OUTPUT ###/p""$1")
5+
src=$(sed -n -e '/### OUTPUT ###/,$!p'"$1")
66
output=$(python "$1"| sed 's/^/# /')
77

88
# These are done separately to avoid having to insert a newline, which causes

0 commit comments

Comments
(0)