19 lines
311 B
Plaintext
19 lines
311 B
Plaintext
|
module start "installation" "Installation" "dontcheck"
|
||
|
|
||
|
for i in ${pkg[@]}; do
|
||
|
for j in ${removepkg[@]}; do
|
||
|
if [[ "${i}" == "${j}" ]]; then
|
||
|
continue 2
|
||
|
fi
|
||
|
done
|
||
|
toinstall+=( "$i" )
|
||
|
done
|
||
|
|
||
|
if [[ "${#toinstall[@]}" -gt 0 ]]; then
|
||
|
xbps-install -Sy "${toinstall[@]}"
|
||
|
else
|
||
|
echo nothing to do
|
||
|
fi
|
||
|
|
||
|
module end
|