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:
Arnaud Rebillout 2024-09-13 09:14:54 +07:00
parent 89ec45354e
commit 09bcc13f2b

View file

@ -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