More useful exit if dir not passed.

This commit is contained in:
Will Andrews 2002-05-16 03:24:44 +00:00
parent a2d1f26f29
commit 7fde760081
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59223

View File

@ -2,6 +2,10 @@
# $FreeBSD$
dir=$@
if [ -z $dir ]; then
echo "Usage: $0 <path to dir with ports and packages to split>"
exit 1
fi
if [ ! -d $dir ]; then
echo "Directory not found. Aborting."
exit 1