diff options
author | emkael <emkael@tlen.pl> | 2020-10-09 00:04:41 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2020-10-09 00:04:41 +0200 |
commit | 76607ccf699247550935f49d58ced5a4d5fa84b4 (patch) | |
tree | b9791ce7e75bf7aeb7e4bfd5075b038f01ec3267 | |
parent | d01b92e81d64446799280c064eb8cebc84802cc6 (diff) |
LFTP optional, if command is found
-rwxr-xr-x | ausbutler-single.sh | 5 |
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" |