From 376827e67a97ce12d45892eed95978713b44d3d5 Mon Sep 17 00:00:00 2001 From: Michal Zimniewicz Date: Sun, 5 Jan 2020 17:09:07 +0100 Subject: update generate-all.sh for the new version of jfrteamy-playoff --- scripts/generate-all.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts') 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" } -- cgit v1.2.3