Scripts not working with Fig

If you have https://fig.io installed on your system, many of the scripts will not work since a full login shell is ran. Fig will try to open a subshell that interferes with the running of the kit script. Does Script Kit set a environment variable that says it's running the script? If so, I can wrap the calls for fig in an if statement.