diff options
author | will <will@FreeBSD.org> | 2002-05-16 11:21:44 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2002-05-16 11:21:44 +0800 |
commit | 5da50a85adef68b73a5234863d9b6e0dafefd993 (patch) | |
tree | d3ac39beb9749be6d2a8faab3ce4cad311bc7eab | |
parent | 2c591a7556e1edf9d1e201e3cbe210c9a90dfd1f (diff) | |
download | freebsd-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-x | Tools/scripts/release/setup.sh | 6 |
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 |