From 2a86681bb06065130f896cf5173ecd06dae93ad5 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sun, 7 Nov 2021 23:28:56 +0000 Subject: [PATCH] nasty version hack for quickget (#205) * nasty version hack for quickget * handle path to self better --- quickget | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickget b/quickget index 6573f5f..92e24c9 100755 --- a/quickget +++ b/quickget @@ -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:"