From 3fa4b81dc3ba582e9b924523ebce7d8a98394e67 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Tue, 9 May 2023 10:48:22 +0200 Subject: [PATCH] feat: add dload dir --- dload/crontab | 4 ++++ dload/dload.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 dload/crontab create mode 100644 dload/dload.sh diff --git a/dload/crontab b/dload/crontab new file mode 100644 index 0000000..813d633 --- /dev/null +++ b/dload/crontab @@ -0,0 +1,4 @@ +HOME= +# m h dom mon dow command +23 0 * * Tue,Thu cd $HOME/git/zhv/dload && sh ./dload.sh +27 0 * * Tue,Thu echo 'Next!' \ No newline at end of file diff --git a/dload/dload.sh b/dload/dload.sh new file mode 100644 index 0000000..85159d3 --- /dev/null +++ b/dload/dload.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# +echo "Started..." +#Started... +# +# special variable $# is the number of arguments +if [ $# -lt 2 ] ; then + echo 'Call ./