Commit 892cd32
committed
Don't use leading
This changes paths that are excuted by a shell in a `justfile` to
omit the leading `./` when the path already has a `/` later.
A path like `./a` is needed to run `a` from the current directory,
but `./a/b` is just a longer way to express `a/b`, since `a/b`
already has a `/` in it. It is the presence of a `/`, rather than
the presence of a leading `./` specifically, that causes paths to
be looked up relative to the current directory rather than by a
`PATH` search.
The reason to make this change is that a few of the commands that
use those paths are about to get a bit more complicated. It is
hoped that removing this small amount of noise, though currently
inconsequential, will allow the immediately forthcoming change to
be made while preserving readability../ when there is another /
1 parent 47479f1 commit 892cd32
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
0 commit comments