File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ perform_rollup_and_post ()
1717 awk -F_ -vDIR=" $1 " ' BEGIN{print "cd " DIR} {key=$3 $4 $5; if (key!=last && last!="") {print record} last=key; record=$0} END{print record}' | \
1818 sed ' /^cvid/ s/^/get /' > fetch.sftp
1919 sftp -b fetch.sftp -P 2222 fb-automation@ftp.delphi.cmu.edu
20- OUT=${MONTH/ _/ -}
20+ OUT=${MONTH/ _/ -} $2
2121 Rscript ../monthly-files.R ${MONTH% _* } ${R_MONTH} . > ${OUT} .csv
2222 gzip ${OUT} .csv
2323 sftp -b <( echo -e " cd $1 \nput ${OUT} .csv.gz" ) -P 2222 fb-automation@ftp.delphi.cmu.edu
@@ -26,5 +26,5 @@ perform_rollup_and_post ()
2626 mv * .gz $1 /
2727}
2828
29- perform_rollup_and_post " fb-public-results"
30- perform_rollup_and_post " protected-race-ethnicity-data"
29+ perform_rollup_and_post " fb-public-results" " "
30+ perform_rollup_and_post " protected-race-ethnicity-data" " -race-ethnicity "
You can’t perform that action at this time.
0 commit comments