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