-
-
Save anonymous/0881579aa5bfb2a70489c1ad276e247c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
f = File.new("/etc/auto.master", "r") | |
while (line = f.gets) | |
if line.start_with?("/home") | |
break | |
true | |
else | |
nil | |
end | |
end | |
rescue | |
nil | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment