27 lines
423 B
Bash
Executable File
27 lines
423 B
Bash
Executable File
#!/bin/bash
|
|
|
|
main() {
|
|
local result=""
|
|
|
|
case "$1" in
|
|
|
|
### currently unused
|
|
|
|
* )
|
|
echo "Exiting '${0}' with code '1' because of unknown key '${1}'"
|
|
return 1
|
|
;;
|
|
|
|
esac
|
|
|
|
if [[ -n "${result}" ]] ; then
|
|
|
|
echo "${result}"
|
|
else
|
|
echo "Exiting '${0}' with code '1' because unable to get version of '$1'"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
main $@
|