#!/bin/sh -e

if ! [ -x /usr/bin/proz ]; then
    echo "Prozilla doesn't seem to be installed."
    echo "Press <Enter> to continue..."
    read WAIT
    exit 1;
fi

echo -n "URL to download: "
read url

echo -n "In which directory should the file be put on? [$HOME]: "
read tdir

if [ -z "$tdir" ];then
    tdir=$HOME
fi

/usr/bin/proz $url -P $tdir

echo "Press <Enter> to continue..."
read WAIT
exit 0;
