intoolswetrust / jd-cli

Command line Java Decompiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell script doesn't work properly in Cygwin environment

ildar-shaimordanov opened this issue · comments

The following update does fix the issue:

#!/bin/sh

DIRNAME=$(dirname "$(readlink -e "$0")")
DIR=$(cd "$DIRNAME" || exit 112; pwd)

[ "$OSTYPE" = "cygwin" ] \
&& DIR="$( cygpath -m "$DIR" )"

java -jar "$DIR/jd-cli.jar" $@ 

Thanks for the report. Could you send a pull request with the suggested change?

Done.

I am going to close this issue.