Lenverge/roles/php/templates/artisan-wrapper.sh.j2
2025-06-17 14:45:38 +08:00

14 lines
452 B
Django/Jinja

#!/bin/bash
# Lenverge Smart Artisan Wrapper
# This script executes 'artisan' with the project-specific PHP version.
# Find the php wrapper script which contains all the logic.
PHP_WRAPPER="/usr/local/bin/php"
# Check if an artisan file exists in the current directory before trying to run it.
if [ -f "artisan" ]; then
exec "$PHP_WRAPPER" "artisan" "$@"
else
echo "Error: 'artisan' file not found in the current directory." >&2
exit 1
fi