Compare commits
2 commits
8e59d066dc
...
4842ca9eb7
Author | SHA1 | Date | |
---|---|---|---|
|
4842ca9eb7 | ||
|
c858e72db1 |
5 changed files with 7 additions and 4 deletions
0
bin/updateall
Normal file → Executable file
0
bin/updateall
Normal file → Executable file
0
share/updateall/commands.d/apt
Normal file → Executable file
0
share/updateall/commands.d/apt
Normal file → Executable file
0
share/updateall/commands.d/docker
Normal file → Executable file
0
share/updateall/commands.d/docker
Normal file → Executable file
11
share/updateall/commands.d/git
Normal file → Executable file
11
share/updateall/commands.d/git
Normal file → Executable file
|
@ -1,10 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if pushd ~/Git; then
|
if cd "${1:-~/Git}"; then
|
||||||
for repo in *; do
|
for repo in *; do
|
||||||
pushd "$repo"
|
cd "$repo"
|
||||||
git pull
|
git pull
|
||||||
popd
|
cd ..
|
||||||
done
|
done
|
||||||
popd
|
elif [ -z "$1" ]; then
|
||||||
|
exec "$0" ~/git
|
||||||
|
else
|
||||||
|
>&2 echo "Can't find your git folder!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
0
share/updateall/commands.d/yay
Normal file → Executable file
0
share/updateall/commands.d/yay
Normal file → Executable file
Loading…
Reference in a new issue