summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtws_check_update4
1 files changed, 4 insertions, 0 deletions
diff --git a/tws_check_update b/tws_check_update
index 70471603aaa..bc180b82015 100755
--- a/tws_check_update
+++ b/tws_check_update
@@ -35,6 +35,10 @@ fi
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}")"
+ if [[ $DST == *"unknown"* ]]; then
+ echo "Error obtaining version from $FILE_MIRROR"
+ exit 2
+ fi
mv "${FILE_MIRROR}" "${DOWNLOAD_DIR}/${DST}"
ln -sf "${DST}" "${FILE_CUR}"
echo "TWS $(echo "${DST}" |sed 's/.*-\(.*\)\..*/\1/g') fetched" 1>&2