Merge pull request #20 from yan12125/fix_cli_relative_path_filename

ffdec.sh: now relative paths accepted
This commit is contained in:
honfika
2015-04-02 19:28:51 +02:00

View File

@@ -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`