summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ct10
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/ct b/bin/ct
index 0bf6cb4..4071b73 100755
--- a/bin/ct
+++ b/bin/ct
@@ -464,19 +464,13 @@ function check_prereqs {
function perlmodule {
perl -M$1 < /dev/null 2> /dev/null
}
- function executable file_in_path {
- if [[ $0 == file_in_path ]] {
- warn "'file_in_path' is deprecated, use 'executable' instead\n"
- }
+ function executable {
which $1 > /dev/null
}
function offer_install {
install+=$1
}
- function depend require {
- if [[ $0 == require ]] {
- warn "'require' is depracated, use 'depend' instead\n"
- }
+ function depend {
if [[ $1 == 'package' ]] {
is_installed $2 || offer_install $2
} else {