aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portdowngrade
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-03-06 20:49:22 +0000
committerChris Rees <crees@FreeBSD.org>2013-03-06 20:49:22 +0000
commit15374243c54dd46180802f8aeae7a2e787dbb0a2 (patch)
treee6b15a6db0b76314b4cba3e548e7c7218ffc2b5e /ports-mgmt/portdowngrade
parent3b74c37703ced79f6804f83d032304bfa8596bdf (diff)
downloadports-15374243c54dd46180802f8aeae7a2e787dbb0a2.tar.gz
ports-15374243c54dd46180802f8aeae7a2e787dbb0a2.zip
Notes
Diffstat (limited to 'ports-mgmt/portdowngrade')
-rw-r--r--ports-mgmt/portdowngrade/Makefile1
-rw-r--r--ports-mgmt/portdowngrade/files/portdowngrade2
2 files changed, 2 insertions, 1 deletions
diff --git a/ports-mgmt/portdowngrade/Makefile b/ports-mgmt/portdowngrade/Makefile
index f20de644bd2a..ed40af5f8f72 100644
--- a/ports-mgmt/portdowngrade/Makefile
+++ b/ports-mgmt/portdowngrade/Makefile
@@ -3,6 +3,7 @@
PORTNAME= portdowngrade
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= # empty
DISTFILES= # none
diff --git a/ports-mgmt/portdowngrade/files/portdowngrade b/ports-mgmt/portdowngrade/files/portdowngrade
index 463ef84515e7..65ac1dbf47d0 100644
--- a/ports-mgmt/portdowngrade/files/portdowngrade
+++ b/ports-mgmt/portdowngrade/files/portdowngrade
@@ -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)