diff options
author | Michal Zimniewicz <mzimniew@man.poznan.pl> | 2020-01-05 17:09:07 +0100 |
---|---|---|
committer | Michal Zimniewicz <mzimniew@man.poznan.pl> | 2020-01-05 17:09:07 +0100 |
commit | 376827e67a97ce12d45892eed95978713b44d3d5 (patch) | |
tree | 49eea1310a2217519a8df4ae15f4145e28db0435 /scripts | |
parent | d7167f6337cdd782a0133e4fe86a1a8cb9298ebd (diff) |
update generate-all.sh for the new version of jfrteamy-playoff
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-all.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh index 8710367..210161a 100755 --- a/scripts/generate-all.sh +++ b/scripts/generate-all.sh @@ -3,16 +3,17 @@ set -e cd "$(dirname "$0")"/jfrteamy-playoff python=venv/bin/python +output_file=output.html generate_playoff () { - rm -f playoff.html + rm -f $output_file filename=$1 ftp_path=$2 echo "Generating $filename to $ftp_path..." - $python playoff.py ../../$filename.json + $python playoff.py ../../$filename.jtpo echo "Uploading to $ftp_path..." - scp playoff.html pzbs:~/liga/$ftp_path - rm -f playoff.html + scp $output_file pzbs:~/liga/$ftp_path + rm -f $output_file echo "Done" } |