Skip to content

Commit

Permalink
Script updates to match base image
Browse files Browse the repository at this point in the history
  • Loading branch information
drivera-armedia committed Aug 26, 2024
1 parent d73adf1 commit 8ae3b40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion find-latest-srpm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

[ ${#} -lt 1 ] && echo -e "usage: ${BASH_ARGV0} rpm1 [rpm2 rpm3 ... rpmN]" && exit 1

list_versions() {
list_versions()
{
for n in "${@}" ; do
[ -f "${n}" ] || continue
/usr/bin/rpm -qp --queryformat "%{NAME}/%{VERSION}/%{RELEASE}=${n}\n" "${n}"
Expand Down
9 changes: 6 additions & 3 deletions get-dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/bin/bash

say() {
say()
{
echo -e "${@}"
}

fail() {
fail()
{
say "${@}" 1>&2
exit ${EXIT_CODE:-1}
}

usage() {
usage()
{
fail "usage: ${BASH_ARGV0} rpm1"
}

Expand Down

0 comments on commit 8ae3b40

Please sign in to comment.