mirror of
https://github.com/FEX-Emu/RootFS.git
synced 2024-10-06 19:43:40 +00:00
3fa5b16050
First scan the supplied package list for missing packages. Then install them all in one go rather than one at a time. Significantly improves rootfs build time
14 lines
346 B
Bash
Executable File
14 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
for i in $@
|
|
do
|
|
if [ -z "$(apt-cache madison $i 2>/dev/null)" ]; then
|
|
echo " > Package $i not available on repo."
|
|
echo "Package Not Found: $i" >> /Unknown_Packages
|
|
else
|
|
echo " > Add package $i to the install list"
|
|
packages="$packages $i"
|
|
fi
|
|
done
|
|
echo "$packages" #you could comment this.
|
|
apt-get -y install $packages
|