X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/ee6c04ef0082bcd8ca62240dc8278f22d8372cf1..2c4a8bb6222b88ff96fbf25372179646ce15f706:/Filter.sh?ds=sidebyside diff --git a/Filter.sh b/Filter.sh index 35a1542..e3e47fc 100755 --- a/Filter.sh +++ b/Filter.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# Cycript - Optimizing JavaScript Compiler/Runtime -# Copyright (C) 2009-2015 Jay Freeman (saurik) +# Cycript - The Truly Universal Scripting Language +# Copyright (C) 2009-2016 Jay Freeman (saurik) # GNU Affero General Public License, Version 3 {{{ # @@ -53,6 +53,12 @@ function include() { fi done done + elif [[ ${line} = @else ]]; then + if [[ -z ${filter+@} ]]; then + unset filter + else + filter= + fi elif [[ ${line} = @end ]]; then unset filter elif [[ ${line} = @include* ]]; then