diff --git a/run_audit.sh b/run_audit.sh index 46a8961..8757356 100644 --- a/run_audit.sh +++ b/run_audit.sh @@ -3,16 +3,18 @@ # get the current directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd $DIR + # table URI in project:dataset.table format TABLE=":." # remove previous run data files -rm "$DIR/folders.json" "$DIR/projects.json" "$DIR/owners_nldj.json" +rm folders.json projects.json owners_nldj.json # run the audit files -python3 "$DIR/get_folders.py" -python3 "$DIR/get_projects.py" -python3 "$DIR/owner_report.py" +python3 get_folders.py +python3 get_projects.py +python3 owner_report.py # load into BQ table -bq load --source_format=NEWLINE_DELIMITED_JSON $TABLE "$DIR/owners_nldj.json" "$DIR/schema.json" \ No newline at end of file +bq load --source_format=NEWLINE_DELIMITED_JSON "$TABLE" owners_nldj.json schema.json \ No newline at end of file