Skip to content
Browse files

And this should work better.

git-svn-id: file:///home/svn/framework3/trunk@10706 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information...
1 parent 6ac2583 commit fc27eb467ad8cdcd5ec604a66bcf1d44ad5088cb @scriptjunkie scriptjunkie committed Oct 16, 2010
Showing with 9 additions and 2 deletions.
  1. +9 −2 msfgui
View
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"

0 comments on commit fc27eb4

Please sign in to comment.
Something went wrong with that request. Please try again.