This commit is contained in:
Tibo De Peuter 2022-10-27 00:03:46 +02:00
parent 2254f628cc
commit e221ed25a8
20 changed files with 14 additions and 14 deletions

View file

@ -18,16 +18,16 @@ pre_remove() {
install_one() {
user=$(who | cut -f1 -d' ')
dir="/home/${user}/.cache/tdpeuter"
cd "${dir}"
cd "/home/${user}/.cache/tdpeuter"
>&2 echo "Installing ${1}"
git clone --depth 1 --progress "https://aur.archlinux.org/${1}.git"
cd "${1}"
git pull
su -c "cd ${dir}/${1} && makepkg -ic" - "${user}"
dir=$(pwd)
su -c "cd ${dir} && makepkg -ic" - "${user}"
}
install_software() {