bootstrap: Change yay to paru for pkg installation
This commit is contained in:
parent
79910b8bf1
commit
bfe7e7790c
1 changed files with 13 additions and 13 deletions
|
@ -36,16 +36,16 @@ main() {
|
||||||
exit $ret
|
exit $ret
|
||||||
}
|
}
|
||||||
|
|
||||||
install_yay() {
|
install_paru() {
|
||||||
# check for existing yay installation
|
# check for existing paru installation
|
||||||
if type yay >/dev/null 2>&1; then
|
if type paru >/dev/null 2>&1; then
|
||||||
echo "Existing yay installation found ..........................................."
|
echo "Existing paru installation found ..........................................."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# use tmp dir to make yay
|
# use tmp dir to make paru
|
||||||
target=$(mktemp -d)
|
target=$(mktemp -d)
|
||||||
git clone https://aur.archlinux.org/yay.git "$target"
|
git clone https://aur.archlinux.org/paru.git "$target"
|
||||||
cd "$target" || exit
|
cd "$target" || exit
|
||||||
makepkg -si
|
makepkg -si
|
||||||
}
|
}
|
||||||
|
@ -53,27 +53,27 @@ install_yay() {
|
||||||
update_repos() {
|
update_repos() {
|
||||||
unattended="$1"
|
unattended="$1"
|
||||||
if "$unattended"; then
|
if "$unattended"; then
|
||||||
yay -Sqyy --noconfirm
|
paru -Sqyy --noconfirm
|
||||||
else
|
else
|
||||||
yay -Syy
|
paru -Syy
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_packages() {
|
install_packages() {
|
||||||
unattended="$1"
|
unattended="$1"
|
||||||
if "$unattended"; then
|
if "$unattended"; then
|
||||||
echo "$packages_repo" "$packages_aur" | yay -Squ --noconfirm --needed -
|
echo "$packages_repo" "$packages_aur" | paru -Squ --noconfirm --needed -
|
||||||
else
|
else
|
||||||
echo "$packages_repo" | yay -Squ --needed -
|
echo "$packages_repo" | paru -Squ --needed -
|
||||||
echo "$packages_aur" | yay -S --needed -
|
echo "$packages_aur" | paru -S --needed -
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
unattended=$1
|
unattended=$1
|
||||||
echo "Beginning package bootstrap ..............................................."
|
echo "Beginning package bootstrap ..............................................."
|
||||||
echo "Installing yay ............................................................"
|
echo "Installing paru ............................................................"
|
||||||
install_yay
|
install_paru
|
||||||
echo "Installing apps ..........................................................."
|
echo "Installing apps ..........................................................."
|
||||||
update_repos "$unattended"
|
update_repos "$unattended"
|
||||||
install_packages "$unattended"
|
install_packages "$unattended"
|
||||||
|
|
Loading…
Reference in a new issue