Startup script: handle Fedora usr-move 35/10035/1
Clément DAVID [Mon, 17 Dec 2012 10:06:13 +0000 (11:06 +0100)]
See also: https://fedoraproject.org/wiki/Features/UsrMove
Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=851710
Change-Id: I073f6555249ba904f9a4e4c0c7acf64262097328

scilab/bin/scilab

index df71ede..f30714c 100755 (executable)
@@ -201,7 +201,8 @@ detect_scilab_path() {
     # Use scilab-bin in the current dir if it exists
     # If not, then start resolving symlinks until we find scilab-bin
     found=0
-    curdir=$(dirname "$progname")
+    cd $(dirname "$progname")
+    curdir=$(pwd -P)
     PATH="$curdir:$PATH"
 
     progbase=$(basename "$progname")