Skip to content

Commit b3c9ff0

Browse files
authored
Add warning if ~/.rootlogon.C is present (#338)
1 parent fa336d7 commit b3c9ff0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

aliDoctor

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
import argparse
33
import os, re
4-
from os.path import exists, abspath
4+
from os.path import exists, abspath, expanduser
55
from glob import glob
66
import yaml
77
from commands import getstatusoutput
@@ -105,6 +105,11 @@ if __name__ == "__main__":
105105

106106
prunePaths(abspath(args.workDir))
107107

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

0 commit comments

Comments
 (0)