bugfix
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
ccad66749c
commit
4d9c558264
9
sx-open
9
sx-open
@ -127,12 +127,13 @@ handle_target() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
while (( $# )); do
|
while (( $# )); do
|
||||||
cmd=$1 regex=$2
|
cmd_str=$1 regex=$2
|
||||||
|
cmd=()
|
||||||
|
|
||||||
if [[ $cmd == *'%target%'* ]]; then
|
if [[ $cmd_str == *'%target%'* ]]; then
|
||||||
cmd=( ${cmd//%target%/$target} )
|
cmd=( ${cmd_str//%target%/$target} )
|
||||||
else
|
else
|
||||||
cmd+=( "$target" )
|
cmd=( $cmd_str "$target" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$target_left" =~ $regex ]]; then
|
if [[ "$target_left" =~ $regex ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user