File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1212# package versions
1313klayoutVersion=0.28.8
1414
15- _versionCompare (){
16- local a b IFS=. ; set -f
17- printf -v a %08d $1 ; printf -v b %08d $3
18- test $a " $2 " $b
15+ _versionCompare () {
16+ local a b IFS=. ; set -f
17+ printf -v a %08d $1 ; printf -v b %08d $3
18+ test $a " $2 " $b
1919}
2020
2121_installORDependencies () {
@@ -48,10 +48,8 @@ _installCentosPackages() {
4848 if ! [ -x " $( command -v klayout) " ]; then
4949 yum install -y https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion} -0.x86_64.rpm
5050 else
51- currentVersion=" $( klayout -v) "
52- currentVersion=$( echo $currentVersion | grep -o ' [0-9]\+\.[0-9]\+\.[0-9]\+' )
53- requiredVersion=$( echo $klayoutVersion )
54- if _versionCompare $currentVersion -ge $requiredVersion ; then
51+ currentVersion=$( klayout -v | grep -o ' [0-9]\+\.[0-9]\+\.[0-9]\+' )
52+ if _versionCompare $currentVersion -ge $klayoutVersion ; then
5553 echo " KLayout version greater than or equal to ${klayoutVersion} "
5654 else
5755 echo " KLayout version less than ${klayoutVersion} "
You can’t perform that action at this time.
0 commit comments