From caf80d71bc1b294933a881d617baa29a231cdafb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 5 Jul 2009 22:10:37 +0200 Subject: pkg: prereqs: Remaned file_in_path to executable --- bin/pkg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/pkg') 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 { -- cgit v1.2.3