aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-05-01 21:17:09 -0500
committerJack Nagel2014-05-01 21:17:09 -0500
commitd0fecb59e47f0f2703f42f9ab3e32ce0dfbea779 (patch)
treed87fb62d16af35b532ae14fef74a7e4192bd9fdc
parent58e11b4659b70c6db6ed1dbc52520a16160bb15e (diff)
downloadhomebrew-d0fecb59e47f0f2703f42f9ab3e32ce0dfbea779.tar.bz2
Invalidate sudo timestamp before exiting
-rwxr-xr-xinstall3
1 files changed, 3 insertions, 0 deletions
diff --git a/install b/install
index 38f516bb0..347d56397 100755
--- a/install
+++ b/install
@@ -88,6 +88,9 @@ def git
@git
end
+# Invalidate sudo timestamp before exiting
+at_exit { sudo "-k" }
+
# The block form of Dir.chdir fails later if Dir.CWD doesn't exist which I
# guess is fair enough. Also sudo prints a warning message for no good reason
Dir.chdir "/usr"