From 1be27c7b007c8ec20c8ce9ab4c213d1f1794c0ad Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 18 Jun 2016 09:28:53 +0200 Subject: [PATCH] Added IsDeveloperVersion to detect if release is still under development --- include/functions | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/functions b/include/functions index d0e2c3d0..6fb792d5 100644 --- a/include/functions +++ b/include/functions @@ -45,6 +45,7 @@ # GetHostID Retrieve an unique ID for this host # IsDebug Check if --debug is used # IsDeveloperMode Check if --developer is used +# IsDeveloperVersion Check if program is a developer release # IsRunning Check if a process is running # InsertSection Insert a section block # 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() # Description : Check if a process is running