From 0161a8fa0b84a5187a25cc8a3c4a3c2fa26325d2 Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 9 Feb 2022 14:39:58 +0100 Subject: [PATCH] progress --- main.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index a0efb61..1e122ad 100755 --- a/main.sh +++ b/main.sh @@ -372,7 +372,10 @@ network() { } add_arg_pkg() { - addpkg "${@}" + for i in "${@}" + if xbps-query -Rs $t|awk '{print $2}'|grep "^$t"; then + addpkg "${@}" + fi } target_phy_disk @@ -380,7 +383,6 @@ target_phy_id use_efi encryption_style hibernation -add_arg_pkg "${@}" bootloader user lang @@ -390,6 +392,7 @@ base profile network printing +add_arg_pkg "${@}" header "Do installation" if [ "${DEBUG}" -ge "1" ]; then