maint/version.sh: added quoting guards file variables

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
Sergei Trofimovich 2009-07-25 17:22:53 +03:00
parent 2967f4434a
commit 1e94073c2d

View File

@ -12,7 +12,7 @@ VERSION_FILE="${src_top_dir}/version.h"
PREV_MC_VERSION="unknown" PREV_MC_VERSION="unknown"
CURR_MC_VERSION="${PREV_MC_VERSION}" CURR_MC_VERSION="${PREV_MC_VERSION}"
if [ -r ${VERSION_FILE} ] if [ -r "${VERSION_FILE}" ]
then then
PREV_MC_VERSION=`sed -n 's/^#define MC_CURRENT_VERSION "\(.*\)"$/\1/p' "${VERSION_FILE}"` PREV_MC_VERSION=`sed -n 's/^#define MC_CURRENT_VERSION "\(.*\)"$/\1/p' "${VERSION_FILE}"`
CURR_MC_VERSION="${PREV_MC_VERSION}" CURR_MC_VERSION="${PREV_MC_VERSION}"