mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
removing that try
This commit is contained in:
parent
aa4e2cf8e5
commit
cb96988442
6
inxi
6
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 1.0.101-b1
|
||||
#### version: 1.0.102-b1
|
||||
#### Date: 28 July 2009
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -3056,7 +3056,7 @@ local sample="
|
|||
tempUnit="°" $4
|
||||
}
|
||||
}
|
||||
/^temp1:/ && ! $2 ~ /^-/ {
|
||||
/^temp1:/ {
|
||||
tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 )
|
||||
if ( temp1 == "" || tempWorking > 0 ) {
|
||||
temp1=tempWorking
|
||||
|
@ -3065,7 +3065,7 @@ local sample="
|
|||
tempUnit="°" $3
|
||||
}
|
||||
}
|
||||
/^temp2:/ && ! $2 ~ /^-/ {
|
||||
/^temp2:/ {
|
||||
# add to array if array index does not exist OR if number is > 0
|
||||
tempWorking=gensub( /\+(.+)/, "\\1", 1, $2 )
|
||||
if ( temp2 == "" || tempWorking > 0 ) {
|
||||
|
|
Loading…
Reference in a new issue