Compare commits

...

2 commits

Author SHA1 Message Date
Hippolyte Chauvin
4842ca9eb7 Corerction : ré-écriture du script de mise à jour des dépôts Git 2023-06-04 19:44:09 +02:00
Hippolyte Chauvin
c858e72db1 Correction : changement de modes sur les scripts 2023-06-04 19:39:16 +02:00
5 changed files with 7 additions and 4 deletions

0
bin/updateall Normal file → Executable file
View file

0
share/updateall/commands.d/apt Normal file → Executable file
View file

0
share/updateall/commands.d/docker Normal file → Executable file
View file

11
share/updateall/commands.d/git Normal file → Executable file
View file

@ -1,10 +1,13 @@
#!/bin/sh
if pushd ~/Git; then
if cd "${1:-~/Git}"; then
for repo in *; do
pushd "$repo"
cd "$repo"
git pull
popd
cd ..
done
popd
elif [ -z "$1" ]; then
exec "$0" ~/git
else
>&2 echo "Can't find your git folder!"
fi

0
share/updateall/commands.d/yay Normal file → Executable file
View file