2023-06-04 19:38:42 +02:00
|
|
|
#!/bin/sh
|
2023-06-10 12:52:02 +02:00
|
|
|
if cd "${1:-${HOME}/Git}"; then
|
2023-05-03 08:06:35 +02:00
|
|
|
for repo in *; do
|
2023-06-04 19:44:09 +02:00
|
|
|
cd "$repo"
|
2023-05-03 08:06:35 +02:00
|
|
|
git pull
|
2023-06-04 19:44:09 +02:00
|
|
|
cd ..
|
2023-05-03 08:06:35 +02:00
|
|
|
done
|
2023-06-04 19:44:09 +02:00
|
|
|
elif [ -z "$1" ]; then
|
|
|
|
exec "$0" ~/git
|
|
|
|
else
|
|
|
|
>&2 echo "Can't find your git folder!"
|
2023-04-13 00:16:36 +02:00
|
|
|
fi
|
|
|
|
|