rebuild: add --branch to package options
parent
267e014547
commit
1b169ffef9
|
@ -25,6 +25,7 @@ build_package() {
|
||||||
local install_as
|
local install_as
|
||||||
local makepkg_args="-srLcCf --noconfirm"
|
local makepkg_args="-srLcCf --noconfirm"
|
||||||
local pull_url="https://aur.archlinux.org/$pkg.git"
|
local pull_url="https://aur.archlinux.org/$pkg.git"
|
||||||
|
local branch
|
||||||
|
|
||||||
while (( $# ))
|
while (( $# ))
|
||||||
do
|
do
|
||||||
|
@ -37,6 +38,10 @@ build_package() {
|
||||||
pull_url=$2
|
pull_url=$2
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
--branch)
|
||||||
|
branch=-b "$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
--install-as)
|
--install-as)
|
||||||
install_as=$2
|
install_as=$2
|
||||||
shift 2
|
shift 2
|
||||||
|
@ -54,7 +59,7 @@ build_package() {
|
||||||
|
|
||||||
if [[ ! -d ~/bin/$pkg ]]
|
if [[ ! -d ~/bin/$pkg ]]
|
||||||
then
|
then
|
||||||
git clone "$pull_url"
|
git clone "$branch" "$pull_url"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$pkg" || exit_on_err
|
cd "$pkg" || exit_on_err
|
||||||
|
|
Loading…
Reference in New Issue