Skip to content

Commit

Permalink
FORGE-727 Fix for unexpected operator error message
Browse files Browse the repository at this point in the history
Ubuntu and other Debian based derivates use dash instead of bash
to execute scripts requiring /bin/sh. The POSIX sh aka dash shell
 does not understand "==".

Hence using "=" instead in the forge script.
  • Loading branch information
VineetReynolds committed Dec 19, 2012
1 parent 01450a2 commit f3940ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/src/main/resources/bin/forge
Expand Up @@ -27,15 +27,15 @@ FORGE_DEBUG_ARGS=""
QUOTED_ARGS=""
while [ "$1" != "" ] ; do

if [ "$PLUGIN_DIR" == "-pluginDir" ] ; then
if [ "$PLUGIN_DIR" = "-pluginDir" ] ; then
PLUGIN_DIR="$1"
fi

if [ "$1" == "-pluginDir" ] ; then
if [ "$1" = "-pluginDir" ] ; then
PLUGIN_DIR="-pluginDir"
fi

if [ "$1" == "--debug" ] ; then
if [ "$1" = "--debug" ] ; then
FORGE_DEBUG_ARGS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
fi

Expand Down

0 comments on commit f3940ee

Please sign in to comment.