nasty version hack for quickget (#205)

* nasty version hack for quickget

* handle path to self better
This commit is contained in:
Phil Clifford 2021-11-07 23:28:56 +00:00 committed by GitHub
parent 979a11ca1b
commit 2a86681bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1116,6 +1116,11 @@ if [ -n "${1}" ]; then
list_csv
elif [ "${OS}" == "list_json" ]; then
list_json
elif [ "${OS}" == "--version" ] || [ "${OS}" == "-version" ] || [ "${OS}" == "version" ]; then
whereIam=$(dirname "${BASH_SOURCE[0]}")
quickemu_version=$( ${whereIam}/quickemu --version)
echo "Quickemu Version: ${quickemu_version}"
exit 0
fi
else
echo "ERROR! You must specify an operating system:"