diff scripts/send.sh @ 191:fea886ba7279

DEP-12: add source for .functions.sh to all scripts using compose
author smith@nwoca.org
date Wed, 20 Sep 2017 17:56:23 +0100
parents 8f45c43ea7a4
children 9afc8cb478f6
line wrap: on
line diff
--- a/scripts/send.sh	Wed Sep 20 17:41:25 2017 +0100
+++ b/scripts/send.sh	Wed Sep 20 17:56:23 2017 +0100
@@ -5,7 +5,7 @@
 #     capture.sh | send.sh -   # sends log files to ssdt server for the current project
 #     send.sh docker-compose.yml  # sends the compose file
 #
-source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh"
+source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh"
 
 file=${1?"Usage: $0 filename [name]\n specify the filename relative to the current directory or - for stdin.\noptionally specify a short name (default to base directory)"}
 if [ "$file" != "-" ]