fix names

This commit is contained in:
Strix 2023-10-14 22:38:04 +02:00
parent 0b7fb13bc4
commit 3da7dc88b4
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,5 @@
^pacman -Syyu
^. ./sync.conf && $PM_COMMAND $PM_UPGRADE
^[ -d /tmp/yay ] && rm -rf /tmp/yay
git clone https://aur.archlinux.org/yay /tmp/yay
cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM

View file

@ -1,9 +1,10 @@
# PM - Package Manager Options
PM_COMMAND=${PM_COMMAND:-pacman}
PM_NOCONFIRM_ARG=${PM_NOCONFIRM_ARG:-"--noconfirm"}
PM_INSTALL_ARG=${PM_INSTALL_ARG:--S}
PM_REMOVE_ARG=${PM_REMOVE_ARG:-R}
PM_UPDATE_ARG=${PM_UPDATE_ARG:-Sy}
PM_NOCONFIRM=${PM_NOCONFIRM:-"--noconfirm"}
PM_INSTALL=${PM_INSTALL:--S}
PM_REMOVE=${PM_REMOVE:-R}
PM_UPDATE=${PM_UPDATE:--Sy}
PM_UPGRADE=${PM_UPGRADE:--Syyu}
# SYS - System Options
SYS_SUDO=${SYS_SUDO:-"sudo"}

View file

@ -11,8 +11,9 @@ PULL_GIT=${PULL_GIT:-yes}
set -e # Exit on error
_install_pkgs() {
run $SYS_SUDO $PM_COMMAND $PM_UPDATE $PM_NOCONFIRM
while read -r pkg; do
run $SYS_SUDO $PM_COMMAND $PM_INSTALL_ARG $PM_NOCONFIRM_ARG $pkg
run $SYS_SUDO $PM_COMMAND $PM_INSTALL $PM_NOCONFIRM $pkg
done <$1
}
@ -58,5 +59,5 @@ main() {
}
echo "# exec: start."
time main "$@"
[ bool ${TIME_TRACK:-no} ] && time main "$@" || main "$@"
echo "# exec: done."