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 ()
17
17
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}' | \
18
18
sed ' /^cvid/ s/^/get /' > fetch.sftp
19
19
sftp -b fetch.sftp -P 2222
[email protected]
20
- OUT=${MONTH/ _/ -}
20
+ OUT=${MONTH/ _/ -} $2
21
21
Rscript ../monthly-files.R ${MONTH% _* } ${R_MONTH} . > ${OUT} .csv
22
22
gzip ${OUT} .csv
23
23
sftp -b
<( echo -e " cd $1 \nput ${OUT} .csv.gz" ) -P 2222
[email protected]
@@ -26,5 +26,5 @@ perform_rollup_and_post ()
26
26
mv * .gz $1 /
27
27
}
28
28
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