Commit 8c3a4a8
committed
zerocracy#277 make factbase filename configurable
The factbase filename was hardcoded as "base.fb". If the server or
baza.rb ever changes the filename (or stores multiple factbases),
entry.sh silently fails with a confusing error from judges.
Now accepts three sources (first wins):
1. The third argument: entry.sh <id> <home> <fb_file>
2. FB_FILE environment variable
3. Default: "base.fb" (backwards compatible)
No breaking changes — existing callers without $3 keep working with
the default filename.1 parent e429c0f commit 8c3a4a8
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
0 commit comments