From 225246ef6578b2d38aeb2c55981b9ff91e018bcb Mon Sep 17 00:00:00 2001 From: Dmitrii Tochanskii Date: Wed, 1 Oct 2025 17:40:33 +0000 Subject: [PATCH] git pull if directory exists on fetch --- tbootstrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbootstrap.sh b/tbootstrap.sh index 1aecaca..36d0487 100755 --- a/tbootstrap.sh +++ b/tbootstrap.sh @@ -17,8 +17,12 @@ function install() function fetch() { for pkgname in $filelist; do + if [ -d $pkgname ]; then + git -C $pkgname pull + else mkdir $pkgname git clone git@gitlab.tlnx.ru:rpms/$pkgname.git $pkgname + fi done }