X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7056e6ee137056c14cf6a2ec31cf081c6d4fe45a..fb726fc55e2a79b03564be97d5057e28805d84f0:/Filter.sh?ds=sidebyside 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