summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-10-09 00:04:41 +0200
committeremkael <emkael@tlen.pl>2020-10-09 00:04:41 +0200
commit76607ccf699247550935f49d58ced5a4d5fa84b4 (patch)
treeb9791ce7e75bf7aeb7e4bfd5075b038f01ec3267
parentd01b92e81d64446799280c064eb8cebc84802cc6 (diff)
LFTP optional, if command is found
-rwxr-xr-xausbutler-single.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/ausbutler-single.sh b/ausbutler-single.sh
index 820086d..d1d4784 100755
--- a/ausbutler-single.sh
+++ b/ausbutler-single.sh
@@ -17,6 +17,9 @@ done
python jfrteamy-ausbutler/butler.py calculate generate nowait
-lftp -f config/send.lftp
+if command -v lftp &> /dev/null
+then
+ lftp -f config/send.lftp
+fi
echo "Done"