Commit 0d05c3f
committed
Fix --source and --minionversion to capture single arg, not $*
Changing SOURCE_PARAMS and MINION_VERSION_PARAMS from "$*" to "$1" in
the argument parser ensures the validators receive only the user-supplied
value, not the full remaining argument list. This allows
_validate_source_param to correctly detect spaces in HTTP/S/FTP URLs
rather than silently truncating to the first word. Removes the cut
workaround from both validator functions since the value is now
unambiguous.1 parent 4fb88a4 commit 0d05c3f
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1951 | 1951 | | |
1952 | 1952 | | |
1953 | 1953 | | |
1954 | | - | |
1955 | | - | |
| 1954 | + | |
1956 | 1955 | | |
1957 | 1956 | | |
1958 | 1957 | | |
| |||
2003 | 2002 | | |
2004 | 2003 | | |
2005 | 2004 | | |
2006 | | - | |
2007 | | - | |
| 2005 | + | |
2008 | 2006 | | |
2009 | 2007 | | |
2010 | 2008 | | |
| |||
2496 | 2494 | | |
2497 | 2495 | | |
2498 | 2496 | | |
2499 | | - | |
| 2497 | + | |
2500 | 2498 | | |
2501 | 2499 | | |
2502 | 2500 | | |
| |||
2506 | 2504 | | |
2507 | 2505 | | |
2508 | 2506 | | |
2509 | | - | |
| 2507 | + | |
2510 | 2508 | | |
2511 | 2509 | | |
2512 | 2510 | | |
| |||
0 commit comments