sh: add helper script to fix the figure subtitle

This commit is contained in:
Rodrigo Arias 2021-04-21 17:58:59 +02:00
parent a9e1579242
commit df62451fcd

View File

@ -0,0 +1,6 @@
#!/bin/sh
if grep -q 'output = args[2]' "$1"; then exit 0; fi
sed '/length(args)>0/aif (length(args)>1) { output = args[2] } else { output = "?" }' -i "$1"
sed '/jsonlite::flatten/,$s/input_file/output/g' -i "$1"