Commit abc3526
committed
docs/Makefile.sh: Fix the attempt to determine what directory
Makefile.sh is in.
Checking ${1} resulted in a empty/null value, which was worked around
in debian/rules by manually changing to the correct directory, but
this only hid the bug. The correct variable to check is ${0}.
When run with bash as /bin/sh, changes in behavior with bash 5.3 in
handling "cd" with an empty argument revealed the bug by not creating
any manpages, and bash emitting an error.
This was discovered when ltsp started failing to build reproducibly on
tests.reproducible-builds.org, where /bin/sh points to bash in one
test.
Big thanks to Chris Lamb who identified the issue and the proper
fix!1 parent e3386a0 commit abc3526
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments