We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64a0c6 commit 21f3cc1Copy full SHA for 21f3cc1
modules/git-hooks.nix
@@ -93,8 +93,8 @@ let
93
# Iterate over all the hooks we know of
94
for name in ${toString (filter (name: name != "enable") (attrNames cfg))}; do
95
# Resolve all the symlinks
96
- src_hook=$(readlink -f "$source_hook_dir/$name")
97
- dst_hook=$(readlink -f "$target_hook_dir/$name")
+ src_hook=$(readlink -f "$source_hook_dir/$name" || true)
+ dst_hook=$(readlink -f "$target_hook_dir/$name" || true)
98
99
# If the hook hasn't changed, skip
100
if [[ "$src_hook" == "$dst_hook" ]]; then
0 commit comments