Skip to content

Commit

Permalink
mkversion: Fix readme location
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
elboulangero committed Sep 13, 2024
1 parent 89ec453 commit 09bcc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mkversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09bcc13

Please sign in to comment.