From fbeda2ed0027dd13ae840d789d6941b21c5b487d Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Sun, 1 Sep 2024 08:34:49 -0700 Subject: [PATCH] bugfix: Update longitude variable name in weather.sh script --- weather.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weather.sh b/weather.sh index c664350b..7584c766 100755 --- a/weather.sh +++ b/weather.sh @@ -120,9 +120,9 @@ if [ ! -f ${CONF_FILE} ]; then if [ -n "${USER_LAT}" ]; then LAT="${USER_LAT}" fi - read -p 'Enter Longitude (default '${LON}'): ' USER_LONG + read -p 'Enter Longitude (default '${LONG}'): ' USER_LONG if [ -n "${USER_LONG}" ]; then - LON="${USER_LONG}" + LONG="${USER_LONG}" fi while : do @@ -156,7 +156,7 @@ fi sed -i.bak \ -e "s@aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@${APIKEY}@g" \ -e "s@xxx.xxxx@${LAT}@g" \ - -e "s@yyy.yyyy@${LON}@g" \ + -e "s@yyy.yyyy@${LONG}@g" \ -e "s@UNITS = metric@UNITS = ${UNITS}@g" \ "${CONF_FILE}"