From 09c779d48bfeef4c381e2d11bfd9dd8ad2a996eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sun, 18 Dec 2016 02:09:23 +0100 Subject: Updates apk-tools, bash, coreutils, curl, findutils, gnupg, irssi, libarchive, libgcrypt, libgpg-error, mc, tcsh, and tmux. --- subr/check_updates.subr | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'subr') diff --git a/subr/check_updates.subr b/subr/check_updates.subr index 7af20e96..e925f891 100644 --- a/subr/check_updates.subr +++ b/subr/check_updates.subr @@ -16,7 +16,7 @@ cpu_get_fnames() { cu_url_index="https://github.com/${_cpugf_uname%%/*}/${_cpugf_pname%%/*}/releases/"; unset _cpu_uname _cpu_pname; cu_fnames="$(wget ${WGET_ARGS} -qO- ${cu_url_index} |\ - sed -n '//s/^.*\([a-zA-Z]\+-\|v\|\)\(.\+\)<\/span>.*$/\2/p')"; + sed -n '//s/^.*\([a-zA-Z]\+-\|v\|\)\(.\+\)<\/span>.*$/\3/p')"; cu_fname_base="${cu_name}"; cu_fname_ext="${cu_fname#v${cu_version}.}"; else @@ -67,10 +67,11 @@ check_pkg_updates() { fi; for cu_fname in ${cu_fnames}; do cu_fname="${cu_fname##*/}"; cpu_get_version; - if [ -z "${cu_fname_version}" ] \ - || ! echo "${cu_fname_version}" | grep -Eq '^[-_.0-9a-zA-Z]+$' \ + if [ -z "${cu_fname_version}" ]; then + continue; + elif ! echo "${cu_fname_version}" | grep -Eq '^[-_.0-9a-zA-Z]+$' \ || echo "${cu_fname_version}" | grep -Eq '^[_.a-zA-Z]+'; then - log_msg varn "Skipping \`${cu_fname_version}' (empty/invalid version.)"; + log_msg varn "Skipping \`${cu_fname_version}' (invalid version.)"; else _cpu_versions="${_cpu_versions:+${_cpu_versions} }${cu_fname_version}"; fi; -- cgit v1.2.3