From 538bfb8426b09c069066d35c32c80ff282b520e5 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Mon, 5 Feb 2018 18:41:13 +0100 Subject: [PATCH] Fix install --version --- install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install b/install index 671fcbe1e..ac7bdcc15 100755 --- a/install +++ b/install @@ -57,8 +57,12 @@ showhelp () { } showversion () { - version=$(php -r 'require_once(__DIR__ . "/airtime_mvc/application/configs/constants.php"); echo AIRTIME_CODE_VERSION;') - echo "Airtime Version ${version}" + if [ ! -f "$SCRIPT_DIR/VERSION" ]; then + echo "Please initialize LibreTime by running ./build.sh" + exit 1 + fi + version=$(cat "$SCRIPT_DIR/VERSION") + echo "LibreTime Version ${version}" exit 0 }