3
# install the right packages
5
function install_package {
6
echo "Attempting to install $1"
7
sudo apt-get install -y $dep
8
echo "Attempt complete."
11
echo "Checking for required packages..."
13
for dep in "apt-mirror" "zsync"; do
14
if dpkg-query -s $dep 2>/dev/null |grep Status: |grep -q installed; then
15
echo "$dep is installed..."
17
echo "$dep is not installed..."