Skip to content

Commit

Permalink
Add warning if ~/.rootlogon.C is present (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Jun 24, 2016
1 parent fa336d7 commit b3c9ff0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aliDoctor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import argparse
import os, re
from os.path import exists, abspath
from os.path import exists, abspath, expanduser
from glob import glob
import yaml
from commands import getstatusoutput
Expand Down Expand Up @@ -105,6 +105,11 @@ if __name__ == "__main__":

prunePaths(abspath(args.workDir))

if exists(expanduser("~/.rootlogon.C")):
warning("You have a ~/.rootlogon.C notice that this might"
" interphere with your environment in hidden ways.\n"
"Please review it an make sure you are not force loading any library"
" which might interphere with the rest of the setup.")
# Decide if we can use homebrew. If not, we replace it with "true" so
# that we do not get spurious messages on linux
homebrew_replacement = ""
Expand Down

0 comments on commit b3c9ff0

Please sign in to comment.