Files
BE_CPONE/scripts/devcpone_bootstrap.sh
2026-04-27 10:53:30 +07:00

14 lines
420 B
Bash
Executable File

#!/bin/sh
set -eu
repo_root=$(git rev-parse --show-toplevel)
git config --local core.hooksPath .githooks
if [ ! -x "$repo_root/.githooks/pre-push" ]; then
chmod +x "$repo_root/.githooks/pre-push" "$repo_root/.githooks/post-commit" 2>/dev/null || true
fi
printf '%s\n' "devcpone hooks enabled for this checkout"
printf '%s\n' "push to master will sync to one@devcpone.aplikasi.web.id:/home/one/project/one/one-api"