From f9ea6510e13317072cc2cb8e5ae27b496f52d38e Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 29 Mar 2017 19:05:37 +0200 Subject: [PATCH] add initialization of submodule --- dotdrop.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dotdrop.sh b/dotdrop.sh index 1ab6ac6..6d2dc7c 100755 --- a/dotdrop.sh +++ b/dotdrop.sh @@ -6,9 +6,13 @@ args="$@" cur=`dirname $(readlink -f $0)` opwd=`pwd` bin="${cur}/dotdrop/dotdrop.py" - -# run dotdrop cfg="${cur}/config.yaml" + +# pivot cd ${cur} +# init the submodule +git submodule update --init --recursive +# launch dotdrop python3 ${bin} --cfg=${cfg} $args +# pivot back cd ${opwd}