mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 08:34:50 +00:00
Merge pull request #20 from yan12125/fix_cli_relative_path_filename
ffdec.sh: now relative paths accepted
This commit is contained in:
@@ -56,10 +56,16 @@ PROGRAM="$0"
|
||||
while [ -L "$PROGRAM" ]; do
|
||||
PROGRAM=`readlink -f "$PROGRAM"`
|
||||
done
|
||||
cd "`dirname \"$PROGRAM\"`"
|
||||
pushd "`dirname \"$PROGRAM\"`" > /dev/null
|
||||
|
||||
search_jar_file || exit 1
|
||||
|
||||
if [ ${JAR_FILE:0:1} != '/' ] ; then
|
||||
JAR_FILE=`pwd`/$JAR_FILE
|
||||
fi
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
# Check default java
|
||||
if [ -x "`which java`" ]; then
|
||||
JAVA_VERSION_OUTPUT=`java -version 2>&1`
|
||||
|
||||
Reference in New Issue
Block a user