mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
maint/version.sh: added quoting guards file variables
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
2967f4434a
commit
1e94073c2d
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user