Skip to content

Commit

Permalink
bugfix: Update longitude variable name in weather.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Sep 1, 2024
1 parent 6bcd450 commit fbeda2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions weather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"

Expand Down

0 comments on commit fbeda2e

Please sign in to comment.