From 09bcc13f2bc61df0e9d36cda32536a1953b0ccea Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 13 Sep 2024 09:14:54 +0700 Subject: [PATCH] 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". --- tools/mkversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkversion.sh b/tools/mkversion.sh index d8209438d..ce4bc90cc 100755 --- a/tools/mkversion.sh +++ b/tools/mkversion.sh @@ -71,7 +71,7 @@ if [ "$commandGIT" != "" ]; then fi else fullgitinfo="${fullgitinfo}/master/release (no_git)" - dl_time=$(stat --printf="%y" ../README.md) + dl_time=$(stat --printf="%y" README.md) # POSIX way... ctime=${dl_time%.*} fi