Improve Sourceforge failure detection

This commit is contained in:
MatMoul 2016-03-16 21:23:46 +01:00
parent 787b2c4c8a
commit be452f4766

9
archdi
View file

@ -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