diff options
author | Ben Alex | 2015-11-30 12:38:21 +1100 |
---|---|---|
committer | Ben Alex | 2015-11-30 12:51:25 +1100 |
commit | 032cd11918d54c8fe0c95c5efd10d5bf7b8f3e90 (patch) | |
tree | 10af0e0e5eb22df4e8711e9ba746faefa46afbfa /tws_check_update | |
parent | 15aaeeb40e40fb8c095046810481cc04143d2ec4 (diff) | |
download | aur-032cd11918d54c8fe0c95c5efd10d5bf7b8f3e90.tar.gz |
Support 954.2a, including major changes to IB's release format.
Diffstat (limited to 'tws_check_update')
-rwxr-xr-x | tws_check_update | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tws_check_update b/tws_check_update index 7b93105c8e20..70471603aaad 100755 --- a/tws_check_update +++ b/tws_check_update @@ -6,8 +6,8 @@ # 2 = Error DOWNLOAD_DIR="$HOME/.tws_scripts" -FILE_MIRROR="unixmacosx_latest.jar" -URL_MIRROR="http://download2.interactivebrokers.com/download" +FILE_MIRROR="tws-latest-standalone-linux-x64.sh" +URL_MIRROR="https://download2.interactivebrokers.com/installers/tws/latest-standalone" FILE_CUR="${DOWNLOAD_DIR}/${FILE_MIRROR}" get_perm_file_name() @@ -32,7 +32,7 @@ if test -f "${FILE_CUR}" ; then touch -r "${FILE_CUR}" "${FILE_MIRROR}" fi -if wget --no-verbose -U x -N -P "${TDIR}" "${URL_MIRROR}/${FILE_MIRROR}" ;then +if wget --no-verbose -U x -N -P "${TDIR}" "${URL_MIRROR}/${FILE_MIRROR}" ;then if test "${FILE_MIRROR}" -nt "${FILE_CUR}" ; then DST="$(get_perm_file_name "${FILE_MIRROR}")" mv "${FILE_MIRROR}" "${DOWNLOAD_DIR}/${DST}" @@ -47,4 +47,3 @@ else echo "TWS update failed" 1>&2 exit 2 fi - |