From 80b710bd03d18959f18c0e751047974a95678f08 Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Tue, 26 May 2020 15:30:17 -0700 Subject: [PATCH] fixed #25 --- data/weather.txt | 2 +- scripts/battery.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/weather.txt b/data/weather.txt index 33ebd70..f4a4c99 100644 --- a/data/weather.txt +++ b/data/weather.txt @@ -1 +1 @@ -☁ 57° Pleasanton, CA +☀ 100° Pleasanton, CA diff --git a/scripts/battery.sh b/scripts/battery.sh index 7042cbe..ee33bdc 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash + linux_acpi() { arg=$1 BAT=$(ls -d /sys/class/power_supply/BAT* | head -1) @@ -28,6 +29,7 @@ linux_acpi() { esac fi } + battery_percent() { # Check OS @@ -69,7 +71,7 @@ battery_status() ;; esac - if [[ "$status" = 'discharging' ]] || [[ "$status" = 'Discharging' ]]; then + if [ $status = 'discharging' ] || [ $status = 'Discharging' ]; then echo '' else echo 'AC '