mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-24 22:34:33 +02:00
Added IsDeveloperVersion to detect if release is still under development
This commit is contained in:
parent
b6afd93b9b
commit
1be27c7b00
@ -45,6 +45,7 @@
|
|||||||
# GetHostID Retrieve an unique ID for this host
|
# GetHostID Retrieve an unique ID for this host
|
||||||
# IsDebug Check if --debug is used
|
# IsDebug Check if --debug is used
|
||||||
# IsDeveloperMode Check if --developer is used
|
# IsDeveloperMode Check if --developer is used
|
||||||
|
# IsDeveloperVersion Check if program is a developer release
|
||||||
# IsRunning Check if a process is running
|
# IsRunning Check if a process is running
|
||||||
# InsertSection Insert a section block
|
# InsertSection Insert a section block
|
||||||
# InsertPluginSection Insert a section block for plugins
|
# InsertPluginSection Insert a section block for plugins
|
||||||
@ -918,6 +919,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Name : IsDeveloperVersion()
|
||||||
|
# Description : Check if this version is development or stable release
|
||||||
|
#
|
||||||
|
# Returns : 0 (True) or 1 (False)
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
IsDeveloperVersion() {
|
||||||
|
if [ "${PROGRAM_RELEASE_TYPE}" = "dev" ]; then return 0; else return 1; fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Name : IsRunning()
|
# Name : IsRunning()
|
||||||
# Description : Check if a process is running
|
# Description : Check if a process is running
|
||||||
|
Loading…
x
Reference in New Issue
Block a user