From 76607ccf699247550935f49d58ced5a4d5fa84b4 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 9 Oct 2020 00:04:41 +0200 Subject: LFTP optional, if command is found --- ausbutler-single.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3