kiss-outdated: Fix various issues. Closes #145
This commit is contained in:
parent
0c2893b9dc
commit
b9193e54cc
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Check repository packages for updates
|
# Check repository packages for updates
|
||||||
|
|
||||||
old_IFS=$IFS
|
|
||||||
|
|
||||||
kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
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##*/}
|
pkg=${pkg_loc##*/}
|
||||||
|
|
||||||
|
@ -29,8 +27,8 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
||||||
# Skip these.
|
# Skip these.
|
||||||
# shellcheck disable=2106
|
# shellcheck disable=2106
|
||||||
{
|
{
|
||||||
[ "${rep:--}" = - ] && continue
|
case $rep in -|''|' ') continue; esac
|
||||||
[ "$ver" = git ] && continue
|
case $ver in git) continue; esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Split the comma separated list.
|
# Split the comma separated list.
|
||||||
|
@ -39,7 +37,7 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
||||||
IFS=', '
|
IFS=', '
|
||||||
set -f
|
set -f
|
||||||
set +f -- $rep
|
set +f -- $rep
|
||||||
IFS=$old_IFS
|
unset IFS
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parse comma separated version lists.
|
# Parse comma separated version lists.
|
||||||
|
|
Loading…
Reference in New Issue