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
|
||||
|
||||
while (( $# )); do
|
||||
cmd=$1 regex=$2
|
||||
cmd_str=$1 regex=$2
|
||||
cmd=()
|
||||
|
||||
if [[ $cmd == *'%target%'* ]]; then
|
||||
cmd=( ${cmd//%target%/$target} )
|
||||
if [[ $cmd_str == *'%target%'* ]]; then
|
||||
cmd=( ${cmd_str//%target%/$target} )
|
||||
else
|
||||
cmd+=( "$target" )
|
||||
cmd=( $cmd_str "$target" )
|
||||
fi
|
||||
|
||||
if [[ "$target_left" =~ $regex ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user