From b0e8c10f0e177f8afbcb0bc8bbc9c3dec68e5e53 Mon Sep 17 00:00:00 2001 From: KeeganForelight Date: Fri, 13 Jan 2023 22:12:30 -0500 Subject: [PATCH] bug fixes --- client_weather.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/client_weather.sh b/client_weather.sh index 9ec9599..ceab04b 100755 --- a/client_weather.sh +++ b/client_weather.sh @@ -48,11 +48,6 @@ print_weather() { # check to see if it is expired check_expiration - ST="$STATE" - if [[ $(wc -c <<<"$STATE") -gt 4 ]] ; then - ST=$(printf '%s.' $(head -c 4 <<<"$STATE")) - fi - # trimming state if [[ "$PRETTY" = true ]] ; then # print with NF icons @@ -65,10 +60,10 @@ print_weather() { temp_icon=$(echo -e '\ufa04') fi # printing - printf '%s %.1f%s%d\ue373 in %s, %s\n' $icon $TEMPERATURE "$temp_icon" "$HUMIDITY" "$CITY" "$ST" + printf '%s %.1f%s%d\ue373 in %s, %s\n' $icon $TEMPERATURE "$temp_icon" "$HUMIDITY" "$CITY" "$STATE" else # default printing - printf "%.1f *$UNIT %d%% Humidity in %s, %s\n" $TEMPERATURE $HUMIDITY "$CITY" "$ST" + printf "%.1f *$UNIT %d%% Humidity in %s, %s\n" $TEMPERATURE $HUMIDITY "$CITY" "$STATE" fi # save before exiting