Commit c533b45
committed
Support '--workspace <WORKSPACE_DIR>'
The current entrypoint fails if the user uses
--workspace /my/workspace with a space instead
of an equals.
This change supports that format as well as the
SIYUAN_WORKSPACE_PATH env variable.
SIYUAN_WORKSPACE_PATH=/should/be/ignored ./stuff.sh --workspace /my/workspace --workspace-prefix --fla
g-equal=3 --flag-no-equal 4
WORKSPACE_DIR: /my/workspace
ARGS: --workspace-prefix --flag-equal=3 --flag-no-equal 4
SIYUAN_WORKSPACE_PATH=/my/workspace ./stuff.sh --w
orkspace-prefix --flag-equal=3 --flag-no-equal
4
WORKSPACE_DIR: /siyuan/workspace
ARGS: --workspace-prefix --flag-equal=3 --flag-no-equal 41 parent b737202 commit c533b45
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
0 commit comments