#!/bin/sh -e

if ! [ -x /usr/bin/proz ]; then
    echo "Prozilla doesn't seem to be installed in /usr/bin"
    echo "press any key to continue..."
    read WAIT
    exit 1;
fi

echo -n "Type the URL you want to download: "
read url

echo -n "In what 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 any key to continue..."
read ANY
exit 0;
