Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 63837 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/sbin/torpage_fetch.orig (-4 / +5 lines)
Lines 2-18 Link Here
2
2
3
. /etc/torpage.conf
3
. /etc/torpage.conf
4
4
5
if [ $# != 2 ]; then
5
if [ $# != 3 ]; then
6
	cat <<USAGE
6
	cat <<USAGE
7
USAGE:  $0 URI DISTDIR
7
USAGE:  $0 URI DISTDIR FILE
8
    URI - a valid uri, probably prefixed with torpage://
8
	URI - a valid uri, probably prefixed with torpage://
9
	DISTDIR - the destination directory, must exist.
9
	DISTDIR - the destination directory, must exist.
10
	FILE - the destination file
10
USAGE
11
USAGE
11
fi
12
fi
12
13
13
URI="$1"
14
URI="$1"
14
DISTDIR="$2"
15
DISTDIR="$2"
15
FILE="`basename "${URI}"`"
16
FILE="$3"
16
17
17
[ ! -d "${DISTDIR}" ] && echo "${DISTDIR} is not a directory!" && exit -1
18
[ ! -d "${DISTDIR}" ] && echo "${DISTDIR} is not a directory!" && exit -1
18
19

Return to bug 63837