aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2002-05-16 11:21:44 +0800
committerwill <will@FreeBSD.org>2002-05-16 11:21:44 +0800
commit5da50a85adef68b73a5234863d9b6e0dafefd993 (patch)
treed3ac39beb9749be6d2a8faab3ce4cad311bc7eab
parent2c591a7556e1edf9d1e201e3cbe210c9a90dfd1f (diff)
downloadfreebsd-ports-gnome-5da50a85adef68b73a5234863d9b6e0dafefd993.tar.gz
freebsd-ports-gnome-5da50a85adef68b73a5234863d9b6e0dafefd993.tar.zst
freebsd-ports-gnome-5da50a85adef68b73a5234863d9b6e0dafefd993.zip
Accept dir as argument instead of hardcoding.
-rwxr-xr-xTools/scripts/release/setup.sh6
1 files changed, 5 insertions, 1 deletions
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