Fixed setup.sh
awk in setup.sh was not capturing the correct feild cleanded up floating point in AutomaticBrightness.sh
This commit is contained in:
parent
1a919d6299
commit
9579c90d62
2 changed files with 3 additions and 5 deletions
2
setup.sh
2
setup.sh
|
@ -33,7 +33,7 @@ Scale=$(echo "scale=2; $MaxScreenBrightness / $Smax" | bc)
|
|||
|
||||
Final="SensorToDisplayScale=$Scale"
|
||||
|
||||
awk -v new_phrase="$Final" '/SensorToDisplayScale/{ print new_phrase; next } 1' AutomaticBrightness.sh > temp && mv temp AutomaticBrightness.sh
|
||||
awk -v new_phrase="$Final" '/SensorToDisplayScale=/{ print new_phrase; next } 1' AutomaticBrightness.sh > temp && mv temp AutomaticBrightness.sh
|
||||
|
||||
|
||||
echo "Cloning AutomaticBrighness.sh..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue