diff --git a/bin/exec-env b/bin/exec-env new file mode 100755 index 0000000..012fc6f --- /dev/null +++ b/bin/exec-env @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Set Composer's home directory if it's not set. +if [ "$ASDF_INSTALL_VERSION" != "system" ]; then + if [ -z "$COMPOSER_HOME" ]; then + export COMPOSER_HOME=$ASDF_INSTALL_PATH/.composer + fi +fi diff --git a/bin/install b/bin/install index 9ba8988..acd7478 100755 --- a/bin/install +++ b/bin/install @@ -1,20 +1,4 @@ #!/usr/bin/env bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. set -eo pipefail diff --git a/bin/list-all b/bin/list-all index 6ff489f..e2b42c7 100755 --- a/bin/list-all +++ b/bin/list-all @@ -1,20 +1,4 @@ #!/usr/bin/env bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. set -eo pipefail diff --git a/bin/list-bin-paths b/bin/list-bin-paths index 39d64ec..5d0b003 100755 --- a/bin/list-bin-paths +++ b/bin/list-bin-paths @@ -1,19 +1,4 @@ #!/usr/bin/env bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -echo "bin sbin" +# Register PHP's binaries, and Composer's home vendor binaries. +echo "bin sbin .composer/vendor/bin"