From 5da50a85adef68b73a5234863d9b6e0dafefd993 Mon Sep 17 00:00:00 2001 From: will Date: Thu, 16 May 2002 03:21:44 +0000 Subject: Accept dir as argument instead of hardcoding. --- Tools/scripts/release/setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Tools') diff --git a/Tools/scripts/release/setup.sh b/Tools/scripts/release/setup.sh index c985ada4a5f7..e022f97ce44e 100755 --- a/Tools/scripts/release/setup.sh +++ b/Tools/scripts/release/setup.sh @@ -1,7 +1,11 @@ #!/bin/sh # $FreeBSD$ -dir="/var/portbuild/4/bak" +dir=$@ +if [ ! -d $dir ]; then + echo "Directory not found. Aborting." + exit 1 +fi tar xzvf $dir/ports.tar.gz cd ports -- cgit