summaryrefslogtreecommitdiff
path: root/pkglocate
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2001-03-08 11:46:52 +0000
committerdrochner <drochner@pkgsrc.org>2001-03-08 11:46:52 +0000
commit0c9ba2dcc4457eee066ce3c572e0db7a80aaf14e (patch)
tree423c9fb5b90f13bf5cd4a54f3a815d015d791ab8 /pkglocate
parentaa8a35a2880767a5a436ee208f04100b385c9c53 (diff)
downloadpkgsrc-0c9ba2dcc4457eee066ce3c572e0db7a80aaf14e.tar.gz
put /usr/sbin into PATH in case user doesn't
otherwise, pkg_info is not found
Diffstat (limited to 'pkglocate')
-rwxr-xr-xpkglocate4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkglocate b/pkglocate
index 4c4d883a5fa..0f5f839586a 100755
--- a/pkglocate
+++ b/pkglocate
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: pkglocate,v 1.4 2001/02/16 14:00:00 agc Exp $
+# $NetBSD: pkglocate,v 1.5 2001/03/08 11:46:52 drochner Exp $
#
#-
# Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -48,6 +48,8 @@
#set -x
+PATH=${PATH}:/usr/sbin
+
case `pkg_info -e 'glimpse-*'` in
glimpse-*) grepname=agrep ;;
*) grepname=/usr/bin/grep ;;