Skip to content

Commit

Permalink
Added BASE_DIR to jar downloads. (aka: Typo correction)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Spencer committed Nov 25, 2018
1 parent 4d3a732 commit f6d18e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions McUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ncftpget -Z -f "${flogin}" "${BASE_DIR}" "${wpdir}/wrapper.properties"
# Want to upload the default filename and replace alternative filename with default filename
if grep -q "${alternative}" "${BASE_DIR}/wrapper.properties"; then
# upload default file, sed replace alternate jar from properties file with default jar
wget `cat "${BASE_DIR}/${ufile}"` -O "${default}"
wget `cat "${BASE_DIR}/${ufile}"` -O "${BASE_DIR}/${default}"

# lftp inspired from
# http://stackoverflow.com/q/9773454/
Expand All @@ -113,7 +113,7 @@ if grep -q "${alternative}" "${BASE_DIR}/wrapper.properties"; then
else
# Same as above, just opposite.
# Upload alternate jar file, sed replace default jar from properties file with alternate jar
wget `cat "${BASE_DIR}/${ufile}"` -O "${alternative}"
wget `cat "${BASE_DIR}/${ufile}"` -O "${BASE_DIR}/${alternative}"

# lftp inspired from
# http://stackoverflow.com/q/9773454/
Expand Down

0 comments on commit f6d18e9

Please sign in to comment.