And this should work better.

git-svn-id: file:///home/svn/framework3/trunk@10706 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2010-10-16 17:51:29 +00:00
parent 6ac2583e13
commit fc27eb467a
1 changed files with 9 additions and 2 deletions

11
msfgui
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env ruby
#
# $Id$
#
@ -7,5 +7,12 @@
# $Revision$
#
java -jar $(dirname $(readlink $0))/data/gui/msfgui.jar
#java -jar $(dirname $(readlink -n $0))/data/gui/msfgui.jar
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
exec "java -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"