Skip to content

Commit

Permalink
refactor: ♻️ Remove Composer installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
unreadcode committed Apr 23, 2024
1 parent 3e1b2b2 commit 106269e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1,839 deletions.
14 changes: 14 additions & 0 deletions bin/composer
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)

if [ -d /proc/cygdrive ]; then
case $(which php) in
$(readlink -n /proc/cygdrive)/*)
# We are in Cygwin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
;;
esac
fi

php "${dir}/composer.phar" "$@"
4 changes: 4 additions & 0 deletions bin/composer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo OFF
:: in case DelayedExpansion is on and a path contains !
setlocal DISABLEDELAYEDEXPANSION
php "%~dp0composer.phar" %*
Binary file added bin/composer.phar
Binary file not shown.
Loading

0 comments on commit 106269e

Please sign in to comment.