mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-22 23:20:06 -07:00
kiss-outdated: Minor tweaks
This commit is contained in:
parent
f42043cdce
commit
b766584b71
@ -1,8 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Check repository packages for updates
|
||||
#
|
||||
# Intended behavior.
|
||||
# shellcheck disable=2106
|
||||
|
||||
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##*/}
|
||||
|
||||
@ -25,13 +28,13 @@ kiss s "${@:-*}" | (while read -r pkg_loc _; do {
|
||||
rep=${rep##*>}
|
||||
|
||||
# Skip these.
|
||||
# shellcheck disable=2106
|
||||
{
|
||||
case $rep in -|''|' ') continue; esac
|
||||
case $ver in git) continue; esac
|
||||
}
|
||||
|
||||
# Split the comma separated list.
|
||||
# Intentional (and safe) splitting.
|
||||
# shellcheck disable=2086
|
||||
{
|
||||
IFS=', '
|
||||
|
Loading…
Reference in New Issue
Block a user