• 此项目
    • 正在载入...
  • 登录

曹东东 / employed · 文件

转到一个项目

GitLab

  • 转到仪表盘
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • employed
  • vendor
  • bin
  • jp.php
  • 文件初始化
    99555704
    曹东东 在
    2022-05-12 18:02:13 +0800
    提交 浏览文件
jp.php 364 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env sh

dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../mtdowling/jmespath.php/bin" && 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

"${dir}/jp.php" "$@"