mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
maint/version.sh: removed bashizms.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
fe8c5390ad
commit
6376db2df1
@ -33,13 +33,13 @@ EOF
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
git_head=$(git --git-dir "${src_top_dir}/.git" rev-parse --verify HEAD 2>/dev/null)
|
git_head=`git --git-dir "${src_top_dir}/.git" rev-parse --verify HEAD 2>/dev/null`
|
||||||
[ -z "${git_head}" ] && mc_print_version
|
[ -z "${git_head}" ] && mc_print_version
|
||||||
|
|
||||||
# try to store sha1
|
# try to store sha1
|
||||||
CURR_MC_VERSION="${git_head}"
|
CURR_MC_VERSION="${git_head}"
|
||||||
|
|
||||||
new_version="$(git --git-dir "${src_top_dir}/.git" describe 2>/dev/null)"
|
new_version=`git --git-dir "${src_top_dir}/.git" describe 2>/dev/null`
|
||||||
[ -z "${new_version}" ] && mc_print_version
|
[ -z "${new_version}" ] && mc_print_version
|
||||||
|
|
||||||
# store pretty tagged version
|
# store pretty tagged version
|
||||||
|
Loading…
Reference in New Issue
Block a user