fix Linux readlink error when running processing-java (issue #1578)

This commit is contained in:
Ben Fry
2013-02-03 12:28:11 -05:00
parent d9b10ceca0
commit c075ba52d2
2 changed files with 18 additions and 12 deletions
+9 -9
View File
@@ -98,14 +98,6 @@ log CLASSPATH
export PATH="$JDKDIR/bin":"$PATH"
log PATH
# Start Processing in the same directory as this script
if [ "$1" ]; then
SKETCH=`readlink -f $1`
else
SKETCH=
fi
cd "$APPDIR"
current_name=`basename $0`
cmd_name='processing-java'
@@ -113,5 +105,13 @@ if [ $current_name = $cmd_name ]
then
java processing.mode.java.Commander "$@"
else
java processing.app.Base "$SKETCH" &
# Start Processing in the same directory as this script
if [ "$1" ]; then
SKETCH=`readlink -f $1`
else
SKETCH=
fi
cd "$APPDIR"
java processing.app.Base "$SKETCH" &
fi