From 57d4a19f1d6c077cca5cb966de185c6a3cca695f Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Mon, 11 Nov 2019 23:51:47 +0000 Subject: [PATCH] Fix dindctl when run from another dir Change-type: patch --- dindctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dindctl b/dindctl index 57ad59fd..6a530919 100755 --- a/dindctl +++ b/dindctl @@ -136,8 +136,8 @@ function refreshSupervisorSrc { } function runDind { - if [ ! -f "tools/dind/resinos-in-container/resinos-in-container.sh" ]; then - git submodule update --init + if [ ! -f "$SUPERVISOR_BASE_DIR/tools/dind/resinos-in-container/resinos-in-container.sh" ]; then + (cd $SUPERVISOR_BASE_DIR; git submodule update --init) fi if [ "$MOUNT_DIST" = "true" ]; then buildSupervisorSrc