Add test arguments for forked project

This commit is contained in:
MatMoul 2015-12-20 16:19:21 +01:00
parent bb7549720c
commit 8e61cab055

16
archdi
View file

@ -29,7 +29,8 @@ liburl2=https://raw.githubusercontent.com/MatMoul/archdi-pkg/master/lib
help(){ help(){
echo "-h | --help : this screen" echo "-h | --help : this screen"
echo "-i | --install : install" echo "-i | --install : install"
echo "no args : start setup" echo "-t | --test githubuser branch : launch a forked branch"
echo "no args : start archdi"
} }
install(){ install(){
@ -57,7 +58,7 @@ run(){
./lib --root ./lib --root
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/MatMoul/archdi-pkg/$branchoption" lib sed -i "/baseurl=/c\baseurl=https://raw.githubusercontent.com/$githubuser/archdi-pkg/$branchoption" lib
./lib --root ./lib --root
fi fi
fi fi
@ -134,12 +135,19 @@ while (( "$#" )); do
-i|--install) install -i|--install) install
exit 0;; exit 0;;
--chroot) chrootoption="true";; --chroot) chrootoption="true";;
--branch) -b | --branch)
shift shift
liburl1=https://raw.githubusercontent.com/MatMoul/archdi-pkg/$1/lib liburl1=https://raw.githubusercontent.com/MatMoul/archdi-pkg/$1/lib
liburl2=https://raw.githubusercontent.com/MatMoul/archdi-pkg/$1/lib liburl2=https://raw.githubusercontent.com/MatMoul/archdi-pkg/$1/lib
branchoption="$1" branchoption="$1"
apptitle="Arch Linux Desktop Install (archdi) - Version: 2015.12.07.01.41.41 (GPLv3)" githubuser="MatMoul"
;;
-t | --test)
shift
liburl1=https://raw.githubusercontent.com/$1/archdi-pkg/$2/lib
liburl2=https://raw.githubusercontent.com/$1/archdi-pkg/$2/lib
branchoption="$2"
githubuser="$1"
;; ;;
esac esac
shift shift