From fa71f2ca69813f30c1743fa05faa8492220d32f2 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Tue, 11 Nov 2014 22:03:11 -0500 Subject: [PATCH] *added Albert Graef's check for git folder in preparation for the launchpad autobuild integration --- l2ork_addons/tar_em_up.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index 4cb1dfee8..c5b537c11 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -125,12 +125,14 @@ if [ $full -gt 0 -o $deb -gt 0 ] then echo "Pd full installer... IMPORTANT! When ran for the first time this step requires internet connection to pull sources from other repositories..." - # check if Gem submodule is empty, and if so do first init - if [ "$(ls -A Gem)" ]; then - git submodule update - else - git submodule init - git submodule update + if [ -d .git ]; then + # check if Gem submodule is empty, and if so do first init + if [ "$(ls -A Gem)" ]; then + git submodule update + else + git submodule init + git submodule update + fi fi # update the include files to be safe -- GitLab