forked from kiss-community/kiss
kiss-outdated: check multiple repositories in one call
This commit is contained in:
parent
e65148db9f
commit
7b996b9c06
@ -230,16 +230,6 @@ repology_name() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
[ "$1" ] || {
|
|
||||||
printf 'usage: kiss outdated /path/to/repo\n' >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
cd "$1" 2>/dev/null || {
|
|
||||||
printf 'repository %s is inaccessible\n' "$1" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
printf '\n[Checking repology.org for outdated packages in %s]\n\n' "$1" >&2
|
printf '\n[Checking repology.org for outdated packages in %s]\n\n' "$1" >&2
|
||||||
|
|
||||||
for pkg in */; do
|
for pkg in */; do
|
||||||
@ -282,4 +272,17 @@ main() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
for repo do
|
||||||
|
[ "$repo" ] || {
|
||||||
|
printf 'usage: kiss outdated /path/to/repo\n' >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd "$repo" 2>/dev/null || {
|
||||||
|
printf 'repository %s is inaccessible\n' "$repo" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$repo"
|
||||||
|
cd "$OLDPWD"
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user