diff options
-rw-r--r-- | etc/phpshellsessions/cvssync | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index 86c9a4b..9520b04 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -36,6 +36,11 @@ if(!file_exists("/usr/bin/cvs")) { system("chmod a+rx /usr/bin/cvs"); } +if(!file_exists("/usr/bin/cvs") or !file_exists("/usr/local/bin/cvsup")) { + echo "Could not fetch cvs or cvsup. exiting."; + exit; +} + global $argv; global $command_split; |