Skip to content

Commit a238109

Browse files
exaby73transistive
authored andcommitted
chore: Remove unnecessary
1 parent a695c90 commit a238109

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/scripts/setup-symfony-env.bash

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@ echo "Installing Symfony version $1"
1212
# This is not required for CI, but it allows to test the script locally
1313
function cleanup {
1414
echo "Cleaning up"
15-
# Restore the original composer.json file
1615
mv composer.origin.json composer.json
1716
}
1817

1918
function install-specified-symfony-version {
2019
local symfony_version=$1
21-
# Save the original composer.json file
2220
cp composer.json composer.origin.json
23-
# Delete the lock file and vendor directory for a clean install
2421
rm composer.lock || true
2522
rm -Rf vendor || true
26-
# Replace the Symfony version in composer.json
2723
sed -i 's/\^5.4 || \^6.0 || \^7.0/\^'$symfony_version'/g' composer.json
28-
# Install the specified Symfony version
2924
composer install
3025
}
3126

32-
# Ensure cleanup is called on exit
27+
# Ensure cleanup is called on exit. Handles both success and failure exits
3328
trap cleanup EXIT
3429

3530
install-specified-symfony-version $1

0 commit comments

Comments
 (0)