error in string comparison
The double equal (==) with single quote condition for string comparison gives a unexpected operator error.pull/5478/head
parent
635d63ebf7
commit
3bfb4700f4
|
@ -13,7 +13,7 @@ EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
|
||||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
|
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
|
||||||
|
|
||||||
if [ "$EXPECTED_SIGNATURE" == "$ACTUAL_SIGNATURE" ]
|
if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
|
||||||
then
|
then
|
||||||
php composer-setup.php --quiet
|
php composer-setup.php --quiet
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|
Loading…
Reference in New Issue