403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2798582/cwd/scripts/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/2798582/cwd/scripts/hooks/pre-commit
#!/usr/bin/env bash
#
# Pre-commit hook: runs Laravel Pint against staged PHP files only.
# Install with: ./scripts/hooks/install.sh
#
# Skip with: git commit --no-verify (use sparingly).

set -e

STAGED_PHP=$(git diff --cached --name-only --diff-filter=ACMR -- '*.php' || true)

if [ -z "$STAGED_PHP" ]; then
    exit 0
fi

if [ ! -x ./vendor/bin/pint ]; then
    echo "Laravel Pint not installed (./vendor/bin/pint missing). Skipping."
    exit 0
fi

echo "Running Pint on staged PHP files..."
echo "$STAGED_PHP" | xargs ./vendor/bin/pint --test
PINT_STATUS=$?

if [ $PINT_STATUS -ne 0 ]; then
    echo ""
    echo "Pint found style violations. Fix them with:"
    echo "  ./vendor/bin/pint"
    echo "Then re-stage and commit."
    exit 1
fi

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit