From 8971b1db81c879a8f021fdeea092a5da6aaf3cb2 Mon Sep 17 00:00:00 2001 From: despiegk Date: Sun, 15 Jun 2025 17:12:55 +0200 Subject: [PATCH] init --- tools/git_checkout.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/git_checkout.sh b/tools/git_checkout.sh index 75d4fbd..470c239 100755 --- a/tools/git_checkout.sh +++ b/tools/git_checkout.sh @@ -50,8 +50,8 @@ fi echo "Git configuration verified" # Create code directory if it doesn't exist -mkdir -p /root/code -cd /root/code +mkdir -p /root/code/git.threefold.info/ourworld_web +cd /root/code/git.threefold.info/ourworld_web # Check if itenv_web2 directory exists if [[ -d "itenv_web2" ]]; then @@ -63,4 +63,15 @@ else git clone git@git.threefold.info:ourworld_web/itenv_web2.git fi +# Check if itenv_tools directory exists +if [[ -d "itenv_tools" ]]; then + echo "Directory itenv_tools exists, pulling latest changes..." + cd itenv_tools + git pull +else + echo "Directory itenv_tools does not exist, cloning repository..." + git clone git@git.threefold.info:ourworld_web/itenv_tools.git +fi + + echo "Checkout/update completed successfully!" \ No newline at end of file