From 8248f9db1e3b2cf16a2e43fc7b331fa10d0fe174 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 287b149..43c6bf9 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 ##