mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 14:21:36 +01:00 
			
		
		
		
	* Fixed use of `rand()` without a parameter in math function (for v3.1) Fixes #794 * Add change in regex for PRCE (PHP < 7.3) * Add unit tests and correctly set PHP supported versions * Drop PHP5.2 from CI workflows because it cannot be build anymore * Fix CI workflow for PHP7.2 and up * re-add compose packages cache with specific key * Exclude unit test files from git export * prevent double CI workflows in PRs
		
			
				
	
	
		
			17 lines
		
	
	
		
			482 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			482 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
 | 
						|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
 | 
						|
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
 | 
						|
 | 
						|
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]
 | 
						|
then
 | 
						|
    >&2 echo 'ERROR: Invalid installer checksum'
 | 
						|
    rm composer-setup.php
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
php composer-setup.php --quiet
 | 
						|
RESULT=$?
 | 
						|
rm composer-setup.php
 | 
						|
exit $RESULT |