diff options
author | emkael <emkael@tlen.pl> | 2021-11-21 22:59:50 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2021-11-21 22:59:50 +0100 |
commit | ecc79e4ea246da6047f3823f400d1b245b598272 (patch) | |
tree | 4c95a2617dac7219b8802628da370d1d31b564ef /boards | |
parent | 752a5b9f9cc5fca0ecfc906de0864a3e73beae17 (diff) |
Shell-script + lftp sync for boards WWW
Diffstat (limited to 'boards')
-rwxr-xr-x | boards/run.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/boards/run.sh b/boards/run.sh new file mode 100755 index 0000000..bd6467b --- /dev/null +++ b/boards/run.sh @@ -0,0 +1,15 @@ +#!/bin/bash +cd $(dirname $0) +python generate.py +if command -v lftp &> /dev/null +then + if [ -z ${LIGA_BOARDS_FTP_ENABLED+x} ] + then + : + else + lftp << EOF + open -u ${LIGA_FTP_USER},${LIGA_FTP_PASS} ${LIGA_FTP_HOST} + mirror -R output/ ${LIGA_BOARDS_FTP_PATH} --exclude-glob .* +EOF + fi +fi |