Reversed logic

Submitted by:	Domagoj Smolcic <rank1seeker@gmail.com>
Pointyhat to:	crees
This commit is contained in:
Chris Rees 2013-03-06 20:49:22 +00:00
parent 3b74c37703
commit 15374243c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313540
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= portdowngrade
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= # empty
DISTFILES= # none

View file

@ -74,7 +74,7 @@ esac
portdir="${1%$PORTSDIR}"
portdir="${portdir#/}"
[ ! -d "$PORTSDIR/$portdir" ] || err "$portdir does not exist in $PORTSDIR"
[ -d "$PORTSDIR/$portdir" ] || err "$portdir does not exist in $PORTSDIR"
case ${2-NULL} in
NULL)