chore: Add version checks for upstream tools (#121)
This commit is contained in:
parent
0e3d6eba9e
commit
5fc4096f0f
9 changed files with 238 additions and 84 deletions
|
|
@ -1,3 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo 'Running buildah'
|
||||
print_version_json() {
|
||||
local version="1.24.0"
|
||||
printf '{"version": "%s"}\n' "$version"
|
||||
}
|
||||
|
||||
main() {
|
||||
if [[ "$1" == "version" && "$2" == "--json" ]]; then
|
||||
print_version_json
|
||||
else
|
||||
echo 'Running buildah'
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo 'Running podman'
|
||||
print_version_json() {
|
||||
local version="4.0.0"
|
||||
printf '{"Client":{"Version": "%s"}}\n' "$version"
|
||||
}
|
||||
|
||||
main() {
|
||||
if [[ "$1" == "version" && "$2" == "-f" && "$3" == "json" ]]; then
|
||||
print_version_json
|
||||
else
|
||||
echo 'Running podman'
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue