We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c019ec commit f2db059Copy full SHA for f2db059
modules/pre-commit.nix
@@ -441,7 +441,7 @@ in
441
echo 1>&2 "git-hooks.nix: updating $PWD repo"
442
[ -L ${cfg.configPath} ] && unlink ${cfg.configPath}
443
444
- if [ -e "''${GIT_WC}/${cfg.configPath}" && ! ${boolToString cfg.overwriteConfig} ]; then
+ if [[ -e "''${GIT_WC}/${cfg.configPath}" && ! ${boolToString cfg.overwriteConfig} ]]; then
445
echo 1>&2 "git-hooks.nix: WARNING: Refusing to install because of an existing config at ${cfg.configPath}"
446
echo 1>&2 ""
447
echo 1>&2 " To migrate the existing config to a Nix configuration:"
0 commit comments