if ($answer_counter == 1): ?>
endif; ?>
# Find the URL of the .deb file
url=$(wget -O- -q --no-check-certificate https://github.com/elbersb/otr-verwaltung/downloads |
sed -ne 's/^.*"\([^"]*otrverwaltung_[^"]*_all\.deb\)".*//p')
case $url in
http://*|https://*) :;;
/*) url=https://github.com$url;;
*) url=https://github.com/elbersb/otr-verwaltung/$url;;
esac
# Create a temporary directory
dir=$(mktemp -dt)
cd "$dir"
# Download the .deb file
wget "$url"
# Install the package
sudo dpkg -i "${url##*/}"
# Clean up
rm "${url##*/}"
cd /
rmdir "$dir"