From fc68318efaa6b0e5360ba894735a02e6d6296e2d Mon Sep 17 00:00:00 2001 From: Vishwas Shashidhar Date: Tue, 12 Feb 2019 19:08:53 +0530 Subject: [PATCH] update pre-install script to get version number dynamically --- installer/mac/preinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/mac/preinstall.sh b/installer/mac/preinstall.sh index 462d4c4f..acac19a4 100755 --- a/installer/mac/preinstall.sh +++ b/installer/mac/preinstall.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash # Kill the existing running instance sudo killall Symphony @@ -12,7 +12,7 @@ delete_app() compare_versions() { # Get the installer version: - CURRENT_VERSION=4.4.0 + CURRENT_VERSION=${APP_VERSION} # Get the currently installed version: INSTALLED_VERSION=$(plutil -p /Applications/Symphony.app/Contents/Info.plist | awk '/CFBundleShortVersionString/ {print substr($3, 2, length($3)-2)}')