Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Resolved #7. Updated the export commands in the configuration templat…
Browse files Browse the repository at this point in the history
…e. (#8)
  • Loading branch information
almostengr authored Jul 21, 2017
1 parent 8071bb2 commit e700d48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions get_weather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ function log_message() {
echo $(date)" | "$*
}

## SCRIPT MAIN
## SCRIPT MAIN
## SCRIPT MAIN ## SCRIPT MAIN ## SCRIPT MAIN ##
## SCRIPT MAIN ## SCRIPT MAIN ## SCRIPT MAIN ##

FILENAME="${1}"

# verify that the configuration file exists
if [ -e $1 ]; then
if [[ -f ${FILENAME} ]]; then

log_message "Loading the configuration"

Expand Down
4 changes: 2 additions & 2 deletions get_weather_config_ex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ feedsdir=/path/to/drupal/feeds/location
# Location code can be found by going to http://w1.weather.gov/xml/current_obs/ and searching for your location.
location=ABCD

export ${feedsdir}
export ${location}
export feedsdir
export location

0 comments on commit e700d48

Please sign in to comment.