summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-05 22:10:37 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-05 22:10:37 +0200
commitcaf80d71bc1b294933a881d617baa29a231cdafb (patch)
tree3b8470b51ff5f0bedb5df00998d28df6b65ac921 /bin/pkg
parent84a6de896288a144630cef5d610e357d33eea290 (diff)
pkg: prereqs: Remaned file_in_path to executable
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg5
1 files changed, 4 insertions, 1 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 {