chore: fix fn typo
This commit is contained in:
@@ -167,7 +167,7 @@ fn copy_file_and_apply_executable_permission(from: &PathBuf, to: &PathBuf) {
|
||||
|
||||
fn install_commit_msg(force: bool) {
|
||||
let commit_msg_crs = get_home_e().join("bin").join("commit-msg.rs");
|
||||
let commig_msg_exec_file = if commit_msg_crs.exists() {
|
||||
let commit_msg_exec_file = if commit_msg_crs.exists() {
|
||||
commit_msg_crs
|
||||
} else {
|
||||
warning!("File {:?} NOT exists!", commit_msg_crs);
|
||||
@@ -183,7 +183,7 @@ fn install_commit_msg(force: bool) {
|
||||
failure_and_exit!("File {:?} exists! or try {}forceinstall{}.", git_hooks_commit_msg, BOLD, END);
|
||||
}
|
||||
|
||||
copy_file_and_apply_executable_permission(&commig_msg_exec_file, &git_hooks_commit_msg);
|
||||
copy_file_and_apply_executable_permission(&commit_msg_exec_file, &git_hooks_commit_msg);
|
||||
|
||||
success!("Install commit-msg to repo succeed!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user