fix(flow): regex
This commit is contained in:
parent
13ddf830c9
commit
7b72fa6796
@ -160,8 +160,8 @@ cmd_enter() {
|
|||||||
|
|
||||||
local -A CONFIG_HOST=(
|
local -A CONFIG_HOST=(
|
||||||
[orb.host]="<namespace>@orb"
|
[orb.host]="<namespace>@orb"
|
||||||
[utm.host]="<namespace>@utm.local"
|
[utm.host]="<namespace>.utm.local"
|
||||||
[core.host]="<namespace>@core.lan"
|
[core.host]="<namespace>.core.lan"
|
||||||
)
|
)
|
||||||
|
|
||||||
local df_platform=""
|
local df_platform=""
|
||||||
@ -169,12 +169,12 @@ cmd_enter() {
|
|||||||
local df_user=""
|
local df_user=""
|
||||||
|
|
||||||
# Parse target: get user, namespace, platform
|
# Parse target: get user, namespace, platform
|
||||||
if [[ "$target_arg" == "*@*" ]]; then
|
if [[ "$target_arg" == *@* ]]; then
|
||||||
df_platform="${target_arg##*@}"
|
df_platform="${target_arg##*@}"
|
||||||
target_arg="${target_arg%@*}"
|
target_arg="${target_arg%@*}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$target_arg" == "*@*" ]]; then
|
if [[ "$target_arg" == *@* ]]; then
|
||||||
df_namespace="${target_arg##*@}"
|
df_namespace="${target_arg##*@}"
|
||||||
df_user="${target_arg%@*}"
|
df_user="${target_arg%@*}"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user