Skip to main content

hook_is_current

Function hook_is_current 

Source
pub fn hook_is_current(auths_home: &Path) -> bool
Expand description

Whether the managed hook file exists with the current script content.

Args:

  • auths_home: The auths data directory.

Usage:

if !hook_is_current(&auths_home) { /* doctor: re-run auths init */ }