Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
  4.  
  5. if [[ -d /proc/cygdrive && $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
  6. # We are in Cgywin using Windows php, so the path must be translated
  7. dir=$(cygpath -m "$dir");
  8. fi
  9.  
  10. php "${dir}/composer.phar" "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement