mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-11 14:52:49 +02:00
10 lines
277 B
Bash
Executable file
10 lines
277 B
Bash
Executable file
#!/bin/bash
|
|
REPO_BASE=$(git rev-parse --show-toplevel)
|
|
SCRIPT_DIR="$REPO_BASE/scripts/hooks"
|
|
INSTALL_DIR="$REPO_BASE/.git/hooks"
|
|
|
|
echo "Repository base directory:$REPO_BASE"
|
|
|
|
mkdir -p "$INSTALL_DIR"
|
|
cp -a "${SCRIPT_DIR}"/* "${INSTALL_DIR}"
|
|
echo "All webhooks have been copied"
|