12 lines
215 B
Plaintext
12 lines
215 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -u
|
||
|
|
||
|
repositories="/etc /etc/bind/ /usr/share/scripts"
|
||
|
|
||
|
for repository in ${repositories}; do
|
||
|
if [ -d "${repository}/.git" ]; then
|
||
|
git --git-dir="${repository}/.git" gc --quiet
|
||
|
fi
|
||
|
done
|