aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2013-03-21 11:13:49 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2013-03-21 11:13:49 +0000
commitcca914e0f6107cff33dfcb6914536abd2cb68044 (patch)
tree93f9b09e807a0f7b3a1468c3f9ec5b4e81763475 /Tools
parent314f9a8f8fced3c2efdf438a1523a780dc68163d (diff)
Notes
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/dialog4ports.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/scripts/dialog4ports.sh b/Tools/scripts/dialog4ports.sh
index b3303efb972a..77f3495cb668 100644
--- a/Tools/scripts/dialog4ports.sh
+++ b/Tools/scripts/dialog4ports.sh
@@ -15,7 +15,9 @@ OPTIONSFILE="$1"
if ! [ -e $DIALOG4PORTS ]; then
# If INSTALL_AS_USER is set then just build and use the WRKDIR version
- if [ -n "${INSTALL_AS_USER}" ]; then
+ # Also do this if PREFIX!=LOCALBASE to avoid missing file or double
+ # installs
+ if [ -n "${INSTALL_AS_USER}" -o "${PREFIX}" != "${LOCALBASE}" ]; then
if ! [ -d "${PORTSDIR}/${DIALOGPORT}" ]; then
echo "===> Skipping 'config' as ${DIALOGPORT} is not checked out" >&2
exit 1