Improve Sourceforge failure detection
This commit is contained in:
parent
787b2c4c8a
commit
be452f4766
1 changed files with 9 additions and 0 deletions
9
archdi
9
archdi
|
@ -53,13 +53,22 @@ run(){
|
||||||
chmod 755 lib 2>/dev/null
|
chmod 755 lib 2>/dev/null
|
||||||
if [ "$chrootoption" = "true" ]; then
|
if [ "$chrootoption" = "true" ]; then
|
||||||
./lib --chroot
|
./lib --chroot
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
archdi --branch master
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if [ "$branchoption" = "" ]; then
|
if [ "$branchoption" = "" ]; then
|
||||||
./lib --root
|
./lib --root
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
archdi --branch master
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
sed -i "/apptitle=/c\apptitle=\"Arch Linux Desktop Install (archdi) - Branch: $branchoption (GPLv3)\"" lib
|
sed -i "/apptitle=/c\apptitle=\"Arch Linux Desktop Install (archdi) - Branch: $branchoption (GPLv3)\"" lib
|
||||||
sed -i "/baseurl=/c\baseurl=https://raw.githubusercontent.com/$githubuser/archdi-pkg/$branchoption" lib
|
sed -i "/baseurl=/c\baseurl=https://raw.githubusercontent.com/$githubuser/archdi-pkg/$branchoption" lib
|
||||||
./lib --root
|
./lib --root
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
archdi --branch master
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cd 2>/dev/null
|
cd 2>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue