/ improved output
This commit is contained in:
@@ -56,8 +56,9 @@ do_update() {
|
||||
param_check "${hostname}" "no host name given"
|
||||
|
||||
echo
|
||||
echo "-- -- -- -- --"
|
||||
echo "installing packages for the host '${hostname}':"
|
||||
echo "-----"
|
||||
echo "INSTALLING PACKAGES FOR HOST '${hostname}':"
|
||||
echo "-----"
|
||||
|
||||
package_list_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${hostname}/packages.txt
|
||||
|
||||
@@ -108,23 +109,23 @@ do_update() {
|
||||
fi
|
||||
done
|
||||
|
||||
echo "ARCH PACKAGES:"
|
||||
if [[ -n "$list" ]]
|
||||
then
|
||||
echo "installation of ARCH packages:"
|
||||
pacman -S --needed --noconfirm $list
|
||||
else
|
||||
echo "no arch packages to install"
|
||||
echo "none to install"
|
||||
fi
|
||||
|
||||
echo "AUR PACKAGES:"
|
||||
if [[ -n "$list_aur" ]]
|
||||
then
|
||||
echo "installation of AUR packages:"
|
||||
# using sudo with the -c flag, it does not work to use variables, like `${list_aur}``
|
||||
# hence the list of aur packages is written to a file, which is used with yay
|
||||
echo ${list_aur} > /tmp/list_aur.txt
|
||||
sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate $(</tmp/list_aur.txt)'
|
||||
else
|
||||
echo "No AUR packages to install"
|
||||
echo "none to install"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user