mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
Ugh.
This commit is contained in:
parent
e749399793
commit
c2141e9c62
@ -12,13 +12,13 @@ help () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GITDIR="~/git"
|
gitdir="~/git"
|
||||||
|
|
||||||
# Get option flags:
|
# Get option flags:
|
||||||
dry=false
|
dry=false
|
||||||
while getopts ghd arg; do
|
while getopts ghd arg; do
|
||||||
case $arg in
|
case $arg in
|
||||||
g) GITDIR="$OPTARG";;
|
g) gitdir="$OPTARG";;
|
||||||
h) help;;
|
h) help;;
|
||||||
d) dry=true;;
|
d) dry=true;;
|
||||||
esac
|
esac
|
||||||
@ -32,8 +32,8 @@ function dryrun {
|
|||||||
$@
|
$@
|
||||||
}
|
}
|
||||||
|
|
||||||
SETUPDIR="Mind_Reader/setup-development"
|
setupdir="Mind_Reader/setup-development"
|
||||||
REPOURI="https://github.com/We-Dont-Byte/Mind_Reader.git"
|
repouri="https://github.com/We-Dont-Byte/Mind_Reader.git"
|
||||||
|
|
||||||
# Install git
|
# Install git
|
||||||
if which git; then
|
if which git; then
|
||||||
@ -47,14 +47,14 @@ elif which apt; then
|
|||||||
dryrun $ELEVATE apt-get install git -y
|
dryrun $ELEVATE apt-get install git -y
|
||||||
fi #? TODO: other package managers?
|
fi #? TODO: other package managers?
|
||||||
|
|
||||||
echo Cloning repository into "$GITDIR"
|
echo Cloning repository into "$gitdir"
|
||||||
dryrun mkdir "$GITDIR"
|
dryrun mkdir "$gitdir"
|
||||||
cd $GITDIR && git clone "$REPOURI"
|
cd $gitdir && git clone "$repouri"
|
||||||
|
|
||||||
# TODO: remove this when merging!
|
# TODO: remove this when merging!
|
||||||
cd Mind_Reader
|
cd Mind_Reader
|
||||||
dryrun git checkout origin/johnBreaux
|
dryrun git checkout origin/johnBreaux
|
||||||
# TODO: remove this when merging!
|
# TODO: remove this when merging!
|
||||||
|
|
||||||
cd "$GITDIR/$SETUPDIR"
|
cd "$gitdir/$setupdir"
|
||||||
bash ./linux-update.sh
|
bash ./linux-update.sh
|
Loading…
Reference in New Issue
Block a user