1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-14 17:52:10 -04:00

make pre-commit more portable (#880)

This commit is contained in:
Marcus Ramberg
2025-12-02 15:25:08 +01:00
committed by GitHub
parent f96a2e2325
commit 67ff7726e0

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -37,7 +37,7 @@ if [[ -n "$STAGED_CORE_FILES" ]]; then
# Tests # Tests
echo " Running tests..." echo " Running tests..."
go test ./... > /dev/null go test ./... >/dev/null
# Build checks # Build checks
echo " Building..." echo " Building..."