File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44HOOK_PATH=" .git/hooks/commit-msg"
55BIN_PATH=" .git/hooks/commit-msg-go"
6- SCRIPT_SRC= " _git/hooks/commit-msg"
7- BIN_SRC= " release /commit-msg-go"
6+ HOOK_URL= " https://raw.githubusercontent.com/inem/dotdotdot/main/ _git/hooks/commit-msg"
7+ BIN_URL= " https://github.com/inem/dotdotdot/releases/latest/download /commit-msg-go"
88
99if [ ! -d .git/hooks ]; then
1010 echo " Error: .git/hooks directory not found. Please run this script from the root of your git repository."
1111 exit 1
1212fi
1313
14- echo " Installing shell wrapper hook..."
15- cp " $SCRIPT_SRC " " $HOOK_PATH "
14+ echo " Downloading shell wrapper hook..."
15+ curl -fsSL " $HOOK_URL " -o " $HOOK_PATH "
1616chmod +x " $HOOK_PATH "
1717echo " Hook installed to $HOOK_PATH "
1818
19- echo " Copying Go binary to .git/hooks ..."
20- cp " $BIN_SRC " " $BIN_PATH "
19+ echo " Downloading Go binary..."
20+ curl -fsSL " $BIN_URL " -o " $BIN_PATH "
2121chmod +x " $BIN_PATH "
2222echo " Binary installed to $BIN_PATH "
2323
You can’t perform that action at this time.
0 commit comments