Author: scooter
Date: 2011-06-16 12:09:00 -0700 (Thu, 16 Jun 2011)
New Revision: 25779

Modified:
   cytoscape/trunk/distribution/src/main/bin/cytoscape.sh
Log:
Since the readlink -f flag isn't universal, just do a simple readlink if 
script_path is a symbolic link.


Modified: cytoscape/trunk/distribution/src/main/bin/cytoscape.sh
===================================================================
--- cytoscape/trunk/distribution/src/main/bin/cytoscape.sh      2011-06-16 
04:20:56 UTC (rev 25778)
+++ cytoscape/trunk/distribution/src/main/bin/cytoscape.sh      2011-06-16 
19:09:00 UTC (rev 25779)
@@ -4,8 +4,12 @@
 # This script is a UNIX-only (i.e. Linux, Mac OS, etc.) version
 
#-------------------------------------------------------------------------------
 
-script_path="$(dirname -- $(readlink -f $0))"
+script_path="$(dirname -- $0)"
+if [ -h $script_path ]; then
+       script_path="$(readlink $script_path)"
+fi
 
+
 #vm_options_path=$HOME/.cytoscape
 vm_options_path=$script_path
 

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to