-fix some minor issue when specifying airtime-install -h
This commit is contained in:
parent
cd1e55bffc
commit
e145be81de
2 changed files with 7 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
* Returns 1 if a previous version of Airtime installed
|
||||
* Returns 2 if the same version of Airtime is installed
|
||||
* Returns 3 if a version of Airtime that we can't upgrade from is installed.
|
||||
* Returns 4 if we need to print help message.
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/AirtimeInstall.php');
|
||||
require_once(__DIR__.'/airtime-constants.php');
|
||||
|
@ -20,12 +21,12 @@ AirtimeInstall::ExitIfNotRoot();
|
|||
|
||||
$opts = AirtimeInstall::getOpts();
|
||||
if ($opts == NULL) {
|
||||
exit(2);
|
||||
exit(4);
|
||||
}
|
||||
|
||||
if (isset($opts->h)) {
|
||||
AirtimeInstall::printUsage($opts);
|
||||
exit(2);
|
||||
exit(4);
|
||||
}
|
||||
|
||||
$version = AirtimeInstall::GetVersionInstalled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue