0
0

carbon 355 B

1234567891011121314
  1. #!/usr/bin/env sh
  2. dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../nesbot/carbon/bin" && pwd)
  3. if [ -d /proc/cygdrive ]; then
  4. case $(which php) in
  5. $(readlink -n /proc/cygdrive)/*)
  6. # We are in Cygwin using Windows php, so the path must be translated
  7. dir=$(cygpath -m "$dir");
  8. ;;
  9. esac
  10. fi
  11. "${dir}/carbon" "$@"