pypa/virtualenv — pull request #332 by WeatherGod (2012-09-10 19:42:51+00:00)
Title: Fix activate.csh so that it will work in non-interactive environments

The access of the $prompt variable was causing "source" commands to error out, thereby causing issues with non-interactive sessions such as "scp" and sourcing while in crontabs. This fix merely moves the two lines inside a single if-block. Note that I am not sure why the first line was positioned where it was, so if I am wrong to move it, just let me know.