summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg5
-rw-r--r--man/7/pkg2
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 864fe17..d45c05b 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -458,7 +458,10 @@ function check_prereqs {
function perlmodule {
perl -M$1 < /dev/null 2> /dev/null
}
- function file_in_path {
+ function executable file_in_path {
+ if [[ $0 == file_in_path ]] {
+ warn "'file_in_path' is deprecated, use 'executable' instead\n"
+ }
which $1 > /dev/null
}
function offer_install {
diff --git a/man/7/pkg b/man/7/pkg
index dfe330f..bce5e79 100644
--- a/man/7/pkg
+++ b/man/7/pkg
@@ -152,7 +152,7 @@ Returns true if I<package> is installed, otherwise false
Returns true if I<perlmodule> can be used by perl, otherwise false
-=item B<file_in_path> I<commendname>
+=item B<executable> I<commendname>
Returns true if I<commandname> was found in the users PATH, otherwise false