+ added support for common packages

This commit is contained in:
committer
2024-06-08 14:50:43 -05:00
parent 68727d8d2d
commit d73575ea8b
2 changed files with 16 additions and 7 deletions

View File

@@ -43,14 +43,12 @@ pacman -Syu # update install packages
echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
# -----
# update all packages for given host
# -----
if [ ${operation} == "update" ] ; then
do_update() {
hostname=$1
param_check "${parameter}" "no host name given"
param_check "${hostname}" "no host name given"
package_list_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${parameter}/packages.txt
package_list_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${hostname}/packages.txt
trg_file=/tmp/packages.txt
@@ -64,7 +62,7 @@ if [ ${operation} == "update" ] ; then
echo ""
echo "attempted to to download 'packages.txt' from:
echo '${package_list_url}'"
echo "'${parameter}' might be an invalid hostname, or 'packages.txt' might be missing for given host."
echo "'${hostname}' might be an invalid hostname, or 'packages.txt' might be missing for given host."
exit 1
fi
@@ -115,6 +113,17 @@ if [ ${operation} == "update" ] ; then
echo "No AUR packages to install"
fi
}
# -----
# update all packages for given host
# -----
if [ ${operation} == "update" ] ; then
do_update("common")
do_update(${parameter})
fi
# -----