Browse Source

bugfix

Signed-off-by: fbt <fbt@fleshless.org>
master 1.6.0
Jack L. Frost 3 years ago
parent
commit
4d9c558264
  1. 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…
Cancel
Save