diff options
author | drochner <drochner@pkgsrc.org> | 2001-03-08 11:46:52 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2001-03-08 11:46:52 +0000 |
commit | 0c9ba2dcc4457eee066ce3c572e0db7a80aaf14e (patch) | |
tree | 423c9fb5b90f13bf5cd4a54f3a815d015d791ab8 /pkglocate | |
parent | aa8a35a2880767a5a436ee208f04100b385c9c53 (diff) | |
download | pkgsrc-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-x | pkglocate | 4 |
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 ;; |