File: scripts/composer.sh

Recommend this page to a friend!
  Classes of Niko  >  PHP Array Diff Multidimensional  >  scripts/composer.sh  >  Download  
File: scripts/composer.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Array Diff Multidimensional
Get differences between 2 multidimensional arrays
Author: By
Last change:
Date: 1 year ago
Size: 513 bytes
 

Contents

Class file image Download
#!/bin/sh

EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"

if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]
then
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    exit 1
fi

php composer-setup.php --quiet --filename="composer" --install-dir="/usr/bin"
RESULT=$?
rm composer-setup.php
exit $RESULT

For more information send a message to info at phpclasses dot org.