2021-06-02 08:34:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-11-26 07:44:59 +01:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/GitProjects" ]; then
|
|
|
|
mkdir "$HOME/GitProjects"
|
|
|
|
fi
|
|
|
|
|
|
|
|
WORKPATH="$HOME/GitProjects"
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/GitProjects/config" ]; then
|
2021-03-08 19:43:03 +01:00
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman-arch/config.git
|
2020-11-26 07:44:59 +01:00
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/config"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
|
|
|
|
|
|
|
if [ ! -d "$HOME/GitProjects/grab" ]; then
|
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman/grab.git
|
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/grab"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
|
|
|
|
2021-03-01 07:59:32 +01:00
|
|
|
: '
|
2020-11-26 07:44:59 +01:00
|
|
|
if [ ! -d "$HOME/GitProjects/powershell-scripting" ]; then
|
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman/powershell-scripting.git
|
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/powershell-scripting"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
2021-03-01 07:59:32 +01:00
|
|
|
'
|
2020-11-26 07:44:59 +01:00
|
|
|
|
|
|
|
if [ ! -d "$HOME/GitProjects/setup" ]; then
|
2021-03-08 19:43:03 +01:00
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman-arch/setup.git
|
2020-11-26 07:44:59 +01:00
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/setup"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
|
|
|
|
2021-03-08 19:40:33 +01:00
|
|
|
if [ ! -d "$HOME/GitProjects/themes" ]; then
|
2021-03-08 19:43:03 +01:00
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman-arch/themes.git
|
2021-03-08 19:39:59 +01:00
|
|
|
fi
|
2021-03-08 19:40:33 +01:00
|
|
|
cd "$HOME/GitProjects/themes"
|
2021-03-08 19:39:59 +01:00
|
|
|
git fetch --all
|
|
|
|
git pull
|
2021-03-01 07:59:32 +01:00
|
|
|
: '
|
2020-11-26 07:44:59 +01:00
|
|
|
if [ ! -d "$HOME/GitProjects/setup-pinephone" ]; then
|
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman/setup-pinephone.git
|
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/setup-pinephone"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
2021-03-01 07:59:32 +01:00
|
|
|
'
|
2020-11-26 07:44:59 +01:00
|
|
|
|
|
|
|
if [ ! -d "$HOME/GitProjects/website" ]; then
|
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman/website.git
|
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/website"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
|
|
|
|
2021-03-04 14:51:50 +01:00
|
|
|
if [ ! -d "$HOME/GitProjects/arch-autobuild-pkg" ]; then
|
2021-03-04 19:35:34 +01:00
|
|
|
git -C $WORKPATH clone git@gitlab.com:arch-pkgbuilds/arch-autobuild-pkg.git
|
2021-03-04 14:51:50 +01:00
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/arch-autobuild-pkg"
|
2021-03-04 14:53:26 +01:00
|
|
|
git fetch --all
|
2021-03-04 14:51:50 +01:00
|
|
|
git pull
|
|
|
|
|
2021-03-07 16:03:39 +01:00
|
|
|
if [ ! -d "$HOME/GitProjects/ssh" ]; then
|
|
|
|
git -C $WORKPATH clone git@gitlab.com:RealStickman/ssh.git
|
|
|
|
fi
|
|
|
|
cd "$HOME/GitProjects/ssh"
|
|
|
|
git fetch --all
|
|
|
|
git pull
|
|
|
|
|
2020-11-26 07:44:59 +01:00
|
|
|
exit 0
|