diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-03-05 17:39:05 +0600 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-03-05 17:39:05 +0600 |
commit | 0d86921c5c7af1d978a70da124ed26e3ea50a769 (patch) | |
tree | d9e33dd587ffa37c8f883040d8385f9ff2bb8046 /src/hvinfo.adb | |
parent | 3a79fd6be852275c052deb97c8dd67abbb7a2545 (diff) | |
download | hvinfo-0d86921c5c7af1d978a70da124ed26e3ea50a769.tar.gz hvinfo-0d86921c5c7af1d978a70da124ed26e3ea50a769.zip |
Set exit status to 0 if hypervisor is detected and to 1 otherwise.
Diffstat (limited to 'src/hvinfo.adb')
-rw-r--r-- | src/hvinfo.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hvinfo.adb b/src/hvinfo.adb index 7825210..370d9e8 100644 --- a/src/hvinfo.adb +++ b/src/hvinfo.adb @@ -1,6 +1,7 @@ with Interfaces; use Interfaces; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; +with Ada.Command_Line; use Ada.Command_Line; with Hypervisor_Check; use Hypervisor_Check; procedure HVInfo is @@ -9,8 +10,9 @@ begin -- Try CPUID checks first if Hypervisor_Present then Put_Line (To_String (Get_Vendor_Name)); + Set_Exit_Status (0); else - null; + Set_Exit_Status (1); end if; end HVInfo; |