Skip to content

Commit f2db059

Browse files
committed
Fix conditional in overwrite check
1 parent 1c019ec commit f2db059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/pre-commit.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ in
441441
echo 1>&2 "git-hooks.nix: updating $PWD repo"
442442
[ -L ${cfg.configPath} ] && unlink ${cfg.configPath}
443443
444-
if [ -e "''${GIT_WC}/${cfg.configPath}" && ! ${boolToString cfg.overwriteConfig} ]; then
444+
if [[ -e "''${GIT_WC}/${cfg.configPath}" && ! ${boolToString cfg.overwriteConfig} ]]; then
445445
echo 1>&2 "git-hooks.nix: WARNING: Refusing to install because of an existing config at ${cfg.configPath}"
446446
echo 1>&2 ""
447447
echo 1>&2 " To migrate the existing config to a Nix configuration:"

0 commit comments

Comments
 (0)