kiss-outdated: Minor tweaks
This commit is contained in:
parent
f42043cdce
commit
b766584b71
|
@ -1,8 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Check repository packages for updates
|
# Check repository packages for updates
|
||||||
|
#
|
||||||
|
# Intended behavior.
|
||||||
|
# shellcheck disable=2106
|
||||||
|
|
||||||
kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
||||||
read -r ver _ 2>/dev/null < "$pkg_loc/version"
|
read -r ver _ 2>/dev/null < "$pkg_loc/version" || continue
|
||||||
|
|
||||||
pkg=${pkg_loc##*/}
|
pkg=${pkg_loc##*/}
|
||||||
|
|
||||||
|
@ -11,7 +14,7 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
||||||
*-bin) fix=${pkg%%-bin} ;;
|
*-bin) fix=${pkg%%-bin} ;;
|
||||||
*[0-9]r) fix=${pkg%%r} ;;
|
*[0-9]r) fix=${pkg%%r} ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Ignore duplicates.
|
# Ignore duplicates.
|
||||||
# shellcheck disable=2106
|
# shellcheck disable=2106
|
||||||
case $seen in
|
case $seen in
|
||||||
|
@ -25,16 +28,16 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
||||||
rep=${rep##*>}
|
rep=${rep##*>}
|
||||||
|
|
||||||
# Skip these.
|
# Skip these.
|
||||||
# shellcheck disable=2106
|
|
||||||
{
|
{
|
||||||
case $rep in -|''|' ') continue; esac
|
case $rep in -|''|' ') continue; esac
|
||||||
case $ver in git) continue; esac
|
case $ver in git) continue; esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Split the comma separated list.
|
# Split the comma separated list.
|
||||||
|
# Intentional (and safe) splitting.
|
||||||
# shellcheck disable=2086
|
# shellcheck disable=2086
|
||||||
{
|
{
|
||||||
IFS=', '
|
IFS=', '
|
||||||
set -f
|
set -f
|
||||||
set +f -- $rep
|
set +f -- $rep
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
Loading…
Reference in New Issue