Draft of renaming structure

This commit is contained in:
2020-05-02 12:12:51 +02:00
parent 8493126985
commit 4e4af4430d
12 changed files with 1 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
#
# Pushs all repositories
# @author Kevin Veen-Birkenbach [aka. Frantz]
source "$(dirname "$(readlink -f "${0}")")/base.sh"
bash "$SCRIPT_PATH/push-local-repositories.sh" push

View File

@@ -0,0 +1,13 @@
#!/bin/bash
#
# Pushs all repositories
# @param $1 git command which should be executed instead of default pull
# @author Kevin Veen-Birkenbach [aka. Frantz]
source "$(dirname "$(readlink -f "${0}")")/base.sh"
if [ $# -eq 1 ]
then
git_command=$1
else
git_command="push"
fi
find $LOCAL_REPOSITORIES_PATH -maxdepth 1 -mindepth 1 -type d -exec bash -c "(cd {} && echo 'In directory: {}' && git status && echo 'Executes git $git_command' && git $git_command --all)" \;