From 6e231e2a576784187e9a61fa069a34bc9fe58087 Mon Sep 17 00:00:00 2001 From: Matheus Albino Brunhara Date: Thu, 28 Mar 2024 13:25:50 -0300 Subject: [PATCH] Add scripts/shell/job/pull-repo-references.sh file --- scripts/shell/job/pull-repo-references.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/shell/job/pull-repo-references.sh diff --git a/scripts/shell/job/pull-repo-references.sh b/scripts/shell/job/pull-repo-references.sh new file mode 100755 index 0000000..46812ea --- /dev/null +++ b/scripts/shell/job/pull-repo-references.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cur_dir=`pwd` +dirs=`find * -maxdepth 0 -type d` + +for d in ${dirs[@]}; do + if [ $d = "code" ]; then + continue + fi + + cd $cur_dir/$d + git pull --rebase +done