Skip to content

Commit

Permalink
Merge branch 'ashen-shugar'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsenile committed Jan 16, 2017
2 parents 875d3c0 + 24d5e92 commit 39567de
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Server/patch.sh
Expand Up @@ -33,30 +33,26 @@ else
echo "Oopse! You do not have git installed. You need that to use patch.sh. Sorry!"
exit 1
fi
gl_branch="trunk"
gl_label="Rhost 4.0+"
if [ "$1" = "39" ]
then
gl_extra="-b rhost-3.9.5"
gl_branch="Rhost-3.9"
gl_label="Rhost 3.9"
gl_test=$(git clone --single-branch 2>&1|grep -c unknown)
if [ "${gl_test}" = "1" ]
then
gl_addon="--single-branch"
fi
fi
echo "Hum. No source files. I'll tell git to yoink the source files for you then."
echo "downloading ${gl_label}..."|tr -d '\012'
git clone ${gl_extra} ${gl_addon} https://github.com/RhostMUSH/trunk rhost_tmp > /dev/null 2>&1
git clone https://github.com/RhostMUSH/${gl_branch} rhost_tmp > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "error."
echo "Ugh. Https failed, let's try normal http...."|tr -d '\012'
git clone ${gl_extra} ${gl_addon} http://github.com/RhostMUSH/trunk rhost_tmp > /dev/null 2>&1
git clone http://github.com/RhostMUSH/${gl_branch} rhost_tmp > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "error"
echo "Double ugh. Http failed, too. Let's try the full git itself..."|tr -d '\012'
git clone ${gl_extra} ${gl_addon} git://github.com/RhostMUSH/trunk rhost_tmp > /dev/null 2>&1
git clone git://github.com/RhostMUSH/${gl_branch} rhost_tmp > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "error."
Expand Down

0 comments on commit 39567de

Please sign in to comment.