Skip to content

Commit

Permalink
Helps to know where to find the jar...
Browse files Browse the repository at this point in the history
Change-Id: I86b50dcff8992fa406701c5886cce66197d2cfa3
Reviewed-on: http://gerrit.dmdirc.com/2573
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <[email protected]>
  • Loading branch information
ShaneMcC authored and Greg Holmes committed Dec 22, 2012
1 parent 685e752 commit 33c71d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deb/DMDirc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

LAUNCHERVERSION="1"
LAUNCHERVERSION="2"
LAUNCHERINFO="deb-${LAUNCHERVERSION}"

echo "---------------------"
Expand Down Expand Up @@ -103,7 +103,11 @@ fi

echo "Running DMDirc - "

${JAVA} -ea -jar ${jar} -l ${LAUNCHERINFO} ${@}
REAL=`readlink -msq "${0}"`
BASEDIR=$(cd "${REAL%/*}" 2>/dev/null; echo $PWD)
JAR=${BASEDIR}/DMDirc.jar

${JAVA} -ea -jar ${JAR} -l ${LAUNCHERINFO} ${@}
EXITCODE=${?}
if [ ${EXITCODE} -eq 42 ]; then
# The client says we need to update, rerun ourself before exiting.
Expand Down

0 comments on commit 33c71d5

Please sign in to comment.