From 3bfb4700f4329a76794f1def630912dc3016d2c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20Carri=C3=A8re?= Date: Wed, 29 Jun 2016 08:55:34 -0400 Subject: [PATCH] error in string comparison The double equal (==) with single quote condition for string comparison gives a unexpected operator error. --- doc/faqs/how-to-install-composer-programmatically.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/faqs/how-to-install-composer-programmatically.md b/doc/faqs/how-to-install-composer-programmatically.md index 0d49db6fe..ec252825d 100644 --- a/doc/faqs/how-to-install-composer-programmatically.md +++ b/doc/faqs/how-to-install-composer-programmatically.md @@ -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');" ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") -if [ "$EXPECTED_SIGNATURE" == "$ACTUAL_SIGNATURE" ] +if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ] then php composer-setup.php --quiet RESULT=$? @@ -39,4 +39,4 @@ wget https://raw.githubusercontent.com/composer/getcomposer.org/1b137f8bf6db3e79 ``` You may replace the commit hash by whatever the last commit hash is on -https://github.com/composer/getcomposer.org/commits/master \ No newline at end of file +https://github.com/composer/getcomposer.org/commits/master