From a2067ac07bef502355cfb2617009f3cb3820191e Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 11 Sep 2013 18:06:46 +0000 Subject: [PATCH] Fix THIS_VERSION clobbering --- setup/cli/package.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/cli/package.php b/setup/cli/package.php index e72d79d34..83a63d27d 100755 --- a/setup/cli/package.php +++ b/setup/cli/package.php @@ -132,10 +132,10 @@ chdir($stage_path); // Replace THIS_VERSION in the stage/ folder -shell_exec("find . -name '*.php' -print0 | xargs -0 sed -ri -e \" - s/( *).*THIS_VERSION.*/\\1define('THIS_VERSION', '$version');/ - s/( *)ini_set\( *'display_errors'.*/\\1ini_set('display_errors', 0);/ - s/( *)ini_set\( *'display_startup_errors'.*/\\1ini_set('display_startup_errors', 0);/ +shell_exec("find . -name '*.inc.php' -print0 | xargs -0 sed -ri -e \" + s/( *)define\('THIS_VERSION'.*/\\1define('THIS_VERSION', '$version');/ + s/( *)ini_set\( *'display_errors'[^)]+\);/\\1ini_set('display_errors', 0);/ + s/( *)ini_set\( *'display_startup_errors'[^)]+\);/\\1ini_set('display_startup_errors', 0);/ \""); shell_exec("tar cjf '$pwd/osTicket-$version.tar.bz2' *"); -- GitLab