Skip to content

Commit 8a5cc81

Browse files
committed
Bump version, enable integer comparison of versions if needed, some clean up
1 parent 582b417 commit 8a5cc81

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

bashlib.in

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,19 @@
22

33
# Author: darren chamberlain <dlc@sevenroot.org>
44
# Co-Author: Paul Bournival <paulb-ns@cajun.nu>
5+
# Co-Author: Mikhail Novosyolov <mikhailnov@dumalogiya.ru>
56
#
67

7-
#######
8-
# Updated Oct 15 2004 by Tony Clayton <t ny-bashlib@clayt n.ca>
9-
# * add safe_param() function with XSS and shell-invocation prevention
10-
# * add extra "| tr -d '$`'" sanity check to name decoding to prevent shell
11-
# invocation of param names.
12-
# * ported function defs to be bash/ash compatible
13-
#######
14-
158
# bashlib is used by sourcing it at the beginning of scripts that
169
# needs its functionality (by using the . or source commands).
1710

1811
PATH=/bin:/usr/bin
1912

2013
#
2114
# Set version number
15+
# Must be an integer because bash cannot compare float numbers
2216
#
23-
VERSION="0.06"
17+
VERSION="2"
2418

2519
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
2620
# Initialization stuff begins here. These things run immediately, and

0 commit comments

Comments
 (0)