removing that try

This commit is contained in:
inxi-svn 2009-07-28 19:29:19 +00:00
parent aa4e2cf8e5
commit cb96988442

6
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 1.0.101-b1 #### version: 1.0.102-b1
#### Date: 28 July 2009 #### Date: 28 July 2009
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
@ -3056,7 +3056,7 @@ local sample="
tempUnit="°" $4 tempUnit="°" $4
} }
} }
/^temp1:/ && ! $2 ~ /^-/ { /^temp1:/ {
tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 ) tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 )
if ( temp1 == "" || tempWorking > 0 ) { if ( temp1 == "" || tempWorking > 0 ) {
temp1=tempWorking temp1=tempWorking
@ -3065,7 +3065,7 @@ local sample="
tempUnit="°" $3 tempUnit="°" $3
} }
} }
/^temp2:/ && ! $2 ~ /^-/ { /^temp2:/ {
# add to array if array index does not exist OR if number is > 0 # add to array if array index does not exist OR if number is > 0
tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 ) tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 )
if ( temp2 == "" || tempWorking > 0 ) { if ( temp2 == "" || tempWorking > 0 ) {