1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-22 23:20:06 -07:00

kiss-outdated: Fix various issues. Closes #145

This commit is contained in:
Dylan Araps 2020-05-08 18:58:15 +03:00
parent 0c2893b9dc
commit b9193e54cc
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -1,10 +1,8 @@
#!/bin/sh
# Check repository packages for updates
old_IFS=$IFS
kiss s "${@:-*}" | (while read -r pkg_loc _; do {
read -r ver _ < "$pkg_loc/version"
read -r ver _ 2>/dev/null < "$pkg_loc/version"
pkg=${pkg_loc##*/}
@ -29,8 +27,8 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
# Skip these.
# shellcheck disable=2106
{
[ "${rep:--}" = - ] && continue
[ "$ver" = git ] && continue
case $rep in -|''|' ') continue; esac
case $ver in git) continue; esac
}
# Split the comma separated list.
@ -39,7 +37,7 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
IFS=', '
set -f
set +f -- $rep
IFS=$old_IFS
unset IFS
}
# Parse comma separated version lists.