diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-18 16:06:57 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-18 16:06:57 +0100 |
commit | fa4cc0616277b847c62d698941e1ad83f905ae05 (patch) | |
tree | 42f095e066f14ffc4ab9d97e0e75800eece0cb7b | |
parent | 42c3b3b75dc05c104c848ed1f8bf6fe9557a8e28 (diff) | |
download | midipix_build-fa4cc0616277b847c62d698941e1ad83f905ae05.tar.bz2 midipix_build-fa4cc0616277b847c62d698941e1ad83f905ae05.tar.xz |
subr/check_updates.subr: fix zsh.
-rw-r--r-- | vars/check_updates.vars | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vars/check_updates.vars b/vars/check_updates.vars index 782889b5..29a1b73b 100644 --- a/vars/check_updates.vars +++ b/vars/check_updates.vars @@ -212,4 +212,15 @@ pkg_xcb_proto_check_updates() { esac; }; +pkg_zsh_check_updates() { + case "${1}" in + get_fnames) + cu_url_index="${cu_url%/*}/"; + cu_fnames="$(wget ${WGET_ARGS} -qO- "${cu_url_index}" |\ + sed -n '/[hH][rR][eE][fF]="[^"]\+"/s/^.*[hH][rR][eE][fF]="\([^"]\+\)".*$/\1/p' |\ + grep -v -- "-doc")"; + ;; + esac; +}; + # vim:filetype=sh |