#!/bin/bash packages="$(invirt-ood-packages)" if [ ${#packages} -eq 0 ]; then echo "No packages to build." exit 0 fi echo "The following NEW packages will be built:" echo $packages | fmt | sed 's/^/ /' echo -n "Do you want to continue? [Y/n] " read answer if [ "${answer:0:1}" = "n" -o "${answer:0:1}" = "N" ]; then echo "Abort." exit 0 fi for package in $packages; do invirt-build-release "$package" done