#!/bin/sh -e

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

while [ -z "$url" ]; do
    echo -n $"URL to download: "
    read url
done

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
read
exit 0;
