Scaffold Cloudron packaging workspace and automation
This commit is contained in:
11
scripts/hooks/pre-commit
Executable file
11
scripts/hooks/pre-commit
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "${SKIP_CI_HOOKS:-}" == "1" ]]; then
|
||||
echo "Skipping CI hooks because SKIP_CI_HOOKS=1"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
REPO_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
||||
|
||||
${REPO_ROOT}/scripts/ci_local.sh lint
|
Reference in New Issue
Block a user