Allow running Composer's global binaries (#55)

* Allow running Composer's global binaries

* Fix executable permission

* Tweaks

Co-authored-by: Sora Morimoto <git@bsky.moe>
This commit is contained in:
Rob Loach
2020-06-01 15:43:04 -04:00
committed by GitHub
parent 31166e1544
commit 29f8080879
4 changed files with 10 additions and 49 deletions

8
bin/exec-env Executable file
View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"