Files
your-gold/.husky/hooks/pre-commit
2025-07-03 11:13:42 +02:00

14 lines
254 B
Bash
Executable File

#!/bin/sh
command_name_bun="bun"
if ! command -v "$command_name_bun" &> /dev/null; then
echo "Command '$command_name_bun' not found. Installing..."
npm install -g "$command_name_bun"@latest
else
"$command_name_bun" lint || exit 1 && cd ..
fi