From 87823ae45be9fe151830284a23465113ee173544 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 26 Nov 2019 17:29:05 +0100 Subject: [PATCH] new: dev: make compose sourcable for eventual tests !minor Signed-off-by: Valentin Lab --- bin/compose | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/compose b/bin/compose index f38e944..a9c10f8 100755 --- a/bin/compose +++ b/bin/compose @@ -9,6 +9,7 @@ ## - no shell libs ## +[[ "${BASH_SOURCE[0]}" != "${0}" ]] && SOURCED=true ANSI_ESC=$'\e[' @@ -457,6 +458,9 @@ run() { } +[ "$SOURCED" ] && return 0 + + ## ## Code ##