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