Commit edf6df8
committed
feat: make installed binary name overridable via env/make var
install.sh: INSTALLED_NAME defaults to "flashduty" but honours a
caller-supplied INSTALLED_NAME env var so we can install our bundled
copy as "fduty" without shadowing a user's own flashduty installation.
All uses of the installed name (mv target, chmod, PATH message, verify
hint) already reference the variable — only the hardcoded default
literal needed updating.
Makefile: BINARY_NAME switches from := (immediate, non-overridable) to
?= so `make build BINARY_NAME=fduty` produces bin/fduty; default
behaviour (make build) is unchanged.
Public identity (cobra Use: string, help text, FLASHDUTY_* env vars,
Go module, repo name) is untouched.1 parent 28098b2 commit edf6df8
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
0 commit comments