13 lines
218 B
Bash
Executable file
13 lines
218 B
Bash
Executable file
#!/bin/sh
|
|
if cd "${1:-${HOME}/Git}"; then
|
|
for repo in *; do
|
|
cd "$repo"
|
|
git pull
|
|
cd ..
|
|
done
|
|
elif [ -z "$1" ]; then
|
|
exec "$0" ~/git
|
|
else
|
|
>&2 echo "Can't find your git folder!"
|
|
fi
|
|
|