File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ export COMPOSER_HOME=" $ASDF_INSTALL_PATH /.composer"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ echo " bin .composer/vendor/bin"
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ install_composer() {
161
161
fail " Checksum checksum for Composer failed."
162
162
fi
163
163
164
- # Verify the checksum
164
+ # Verify the checksum and move binary into place
165
165
echo " Verifying checksum..."
166
166
if $checksum_cmd -c composer.phar.sha256sum; then
167
167
mv composer.phar " $install_path /composer"
@@ -170,6 +170,9 @@ install_composer() {
170
170
fail " Checksum verification failed. The file may be corrupted or tampered with."
171
171
fi
172
172
173
+ # Create install directory for composer stuff
174
+ mkdir -p " ${2%/ bin} /.composer"
175
+
173
176
# Clean up: remove temporary directory
174
177
cd - && rm -rf " $temp_dir "
175
178
You can’t perform that action at this time.
0 commit comments