X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7056e6ee137056c14cf6a2ec31cf081c6d4fe45a..5b75838211f16d9c88fb1bae3193e3693a1bee39:/Filter.sh diff --git a/Filter.sh b/Filter.sh index 7135d28..bb76b0a 100755 --- a/Filter.sh +++ b/Filter.sh @@ -3,7 +3,14 @@ filters=("$@") while IFS= read -r line; do - if [[ ${line} = @begin* ]]; then + if [[ ${line} = @if* ]]; then + line=${line#@if } + for name in "${filters[@]}"; do + if [[ ${line} = ${name}' '* ]]; then + echo "${line#${name} }" + fi + done + elif [[ ${line} = @begin* ]]; then set ${line}; shift filter= for name in "${filters[@]}"; do