mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-06 13:01:37 -07:00
mkversion: Fix readme location
While building proxmark3 in an environment without `git` installed, I noticed the following errors on stderr: ``` mkversion create test env: 'git': No such file or directory stat: cannot statx '../README.md': No such file or directory ``` The first line "env: 'git': No such file or directory" is expected, as git is not installed. However, the second line "stat: cannot statx '../README.md': No such file or directory" is a real error: we're running from top-level directory, so the correct path for README.md is just "README.md".
This commit is contained in:
parent
89ec45354e
commit
09bcc13f2b
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ if [ "$commandGIT" != "" ]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
fullgitinfo="${fullgitinfo}/master/release (no_git)"
|
fullgitinfo="${fullgitinfo}/master/release (no_git)"
|
||||||
dl_time=$(stat --printf="%y" ../README.md)
|
dl_time=$(stat --printf="%y" README.md)
|
||||||
# POSIX way...
|
# POSIX way...
|
||||||
ctime=${dl_time%.*}
|
ctime=${dl_time%.*}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue