And this should work better.
git-svn-id: file:///home/svn/framework3/trunk@10706 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
6ac2583e13
commit
fc27eb467a
11
msfgui
11
msfgui
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue