mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
version.sh: fix bashisms
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
9a5c9cbc88
commit
c7ba6209df
@ -21,13 +21,11 @@ src_top_dir=
|
||||
|
||||
VERSION_FILE=${src_top_dir}/version.h
|
||||
|
||||
pushd ${src_top_dir} &>/dev/null
|
||||
git_head=$(git rev-parse --verify HEAD 2>/dev/null)
|
||||
git_head=$(git --git-dir "${src_top_dir}" rev-parse --verify HEAD 2>/dev/null)
|
||||
[ -z "${git_head}" ] && exit
|
||||
|
||||
new_version="$(git describe 2>/dev/null)"
|
||||
new_version="$(git --git-dir "${src_top_dir}" describe 2>/dev/null)"
|
||||
[ -z "${new_version}" ] && exit
|
||||
popd &>/dev/null
|
||||
|
||||
|
||||
saved_version=
|
||||
|
Loading…
Reference in New Issue
Block a user