#!/bin/bash set -e if [ -z "${USER}" ] then echo -n "User: " read USER fi if [ -z "${PASSWORD}" ] then echo -n "Password: " read -s PASSWORD fi PACKAGES="$(wget -q https://${USER}:${PASSWORD}@git.bfh.science/packages/ -O - | grep "sublevel-repo'>&1 && \ ! wget -q https://apt.bfh.science/archive/${PACKAGE}/current_all -O /dev/null 1>&1 then echo " ${PACKAGE}" fi done