mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
fix(cloudcmd) prefix: add value check
This commit is contained in:
parent
3a3018a8d2
commit
5cb7311b30
1 changed files with 6 additions and 4 deletions
|
|
@ -74,10 +74,12 @@
|
|||
value = createPass(config('algo'), value);
|
||||
break;
|
||||
case 'prefix':
|
||||
if (!~value.indexOf('/'))
|
||||
value = '/' + value;
|
||||
else if (value.length === 1)
|
||||
value = '';
|
||||
if (value) {
|
||||
if (!~value.indexOf('/'))
|
||||
value = '/' + value;
|
||||
else if (value.length === 1)
|
||||
value = '';
|
||||
}
|
||||
|
||||
prefix = value;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue