ga-instructors/installfest_script — pull request #22 by h4w5 (2014-06-10 19:48:07+00:00)
Title: Updated capture_password

... with a new prompt, and switched the -n to the -v flag in keep-alive statement. Not sure how that statement works, it seems to fork a process that just runs sudo -n true every 60 seconds until the original process (our script) is dead... But the specifics of the kill -0 "$$" statement and when it is run and why || exit is true elude me still. But, I did notice that the flag -n is the "noninteractive mode" flag, which is fine, but -v means "update sudo timestamp", which seems to me to be the desired behavior. But maybe (esp for mac, since we aren't writing sudo on every line) we want the -n flag there ALSO? @phlco