From 8a5cc81ddc6780363b3fa0c6ecae2119b8555bd2 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 21 Feb 2022 18:58:35 +0300 Subject: [PATCH] Bump version, enable integer comparison of versions if needed, some clean up --- bashlib.in | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bashlib.in b/bashlib.in index b0c0ed0..6ee50e8 100644 --- a/bashlib.in +++ b/bashlib.in @@ -2,16 +2,9 @@ # Author: darren chamberlain # Co-Author: Paul Bournival +# Co-Author: Mikhail Novosyolov # -####### -# Updated Oct 15 2004 by Tony Clayton -# * add safe_param() function with XSS and shell-invocation prevention -# * add extra "| tr -d '$`'" sanity check to name decoding to prevent shell -# invocation of param names. -# * ported function defs to be bash/ash compatible -####### - # bashlib is used by sourcing it at the beginning of scripts that # needs its functionality (by using the . or source commands). @@ -19,8 +12,9 @@ PATH=/bin:/usr/bin # # Set version number +# Must be an integer because bash cannot compare float numbers # -VERSION="0.06" +VERSION="2" # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # Initialization stuff begins here. These things run immediately, and