mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-21 12:26:30 +03:00
syntax
This commit is contained in:
+6
-5
@@ -28,17 +28,18 @@ install:
|
||||
|
||||
script:
|
||||
- |
|
||||
EXIT_CODE=$(composer req --ignore-platform-reqs $(echo $PACKAGES));
|
||||
composer req --ignore-platform-reqs $(echo $PACKAGES)
|
||||
EXIT_CODE=$?
|
||||
echo "Exit code: $EXIT_CODE";
|
||||
MESSAGE="";
|
||||
if [[ EXIT_CODE -eq 0 ]]; then
|
||||
exit 0;
|
||||
elif [[ EXIT_CODE -eq 1 ]]; then
|
||||
echo "Could not install package";
|
||||
exit 1;
|
||||
MESSAGE="Could not install package";
|
||||
elif [[ EXIT_CODE -eq 2 ]]; then
|
||||
echo "Could not resolve dependencies. You can ignore this error if your package does not support Symfony $SKELETON_VERSION";
|
||||
exit 1;
|
||||
MESSAGE="Could not resolve dependencies. You can ignore this error if your package does not support Symfony $SKELETON_VERSION";
|
||||
fi
|
||||
|
||||
echo -e "#\n#\n#\n#\n# $MESSAGE\n#\n#\n#\n#\n";
|
||||
exit $EXIT_CODE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user