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:
steel99xl 2024-02-28 13:22:40 -05:00
parent 1a919d6299
commit 9579c90d62
2 changed files with 3 additions and 5 deletions

View file

@ -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..."