mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +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"
|
||||
CURR_MC_VERSION="${PREV_MC_VERSION}"
|
||||
|
||||
if [ -r ${VERSION_FILE} ]
|
||||
if [ -r "${VERSION_FILE}" ]
|
||||
then
|
||||
PREV_MC_VERSION=`sed -n 's/^#define MC_CURRENT_VERSION "\(.*\)"$/\1/p' "${VERSION_FILE}"`
|
||||
CURR_MC_VERSION="${PREV_MC_VERSION}"
|
||||
|
Loading…
Reference in New Issue
Block a user