More useful exit if dir not passed.
This commit is contained in:
parent
a2d1f26f29
commit
7fde760081
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59223
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user