Changeset 21541

Show
Ignore:
Timestamp:
20.01.2010 14:15:07 (9 years ago)
Author:
ak19
Message:

Minor change to the script so that fli.sh's call to gli.sh succeeds from whichever directory fli.sh was launched from.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/fli.sh

    r16466 r21541  
    4343echo "FEDORA_HOME: $FEDORA_HOME" 
    4444echo "FEDORA_VERSION: $FEDORA_VERSION" 
    45 ./gli.sh -fedora -fedora_home "$FEDORA_HOME" -fedora_version "$FEDORA_VERSION" $* 
     45 
     46# Need to launch the gli.sh script from the same directory that fli was launched,  
     47# since that's where we are 
     48# substring replacement (match end part of substring): http://tldp.org/LDP/abs/html/string-manipulation.html 
     49gliscript=$0 
     50gliscript=${0/%fli.sh/gli.sh} 
     51#echo "script: $gliscript" 
     52./$gliscript -fedora -fedora_home "$FEDORA_HOME" -fedora_version "$FEDORA_VERSION" $*