Deutsch English Français Italiano |
<vv6cu0$i6tm$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> Newsgroups: comp.unix.bsd.freebsd.misc,comp.os.linux.misc Subject: Re: Git automation Date: Sun, 4 May 2025 00:38:24 -0000 (UTC) Organization: A noiseless patient Spider Lines: 27 Message-ID: <vv6cu0$i6tm$1@dont-email.me> References: <vv6221$2a1c$22@gallifrey.nk.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 04 May 2025 02:38:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="661d9a02e1f8925d19e3be0dd0785dfb"; logging-data="596918"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188LmPSBK8MTApJtqiVPkvM" User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) Cancel-Lock: sha1:CxJ2uQmjiVmNVv6shI0pMbQ0WZ4= Bytes: 1559 On Sat, 03 May 2025 21:32:49 +0000, The Doctor wrote: > I have a directory /path/to/ > > where is Have programmes with .git is found . > > How can i cron a script so that the git pull can be run in the > subdirectories with a .git subdirectory , ogin to the next one until done > and report results in e-mail ? Use crontab to execute Try something like % cat zxc #! /bin/sh cd ${HOME} | DIRS="$(find . -type d -name .git | sed s/\\/.git//)" for i in $DIRS ; do cd $i git pull -ff cd ${HOME} done -- steve