Changeset 3162


Ignore:
Timestamp:
Jun 28, 2013, 4:33:37 PM (6 years ago)
Author:
bruno
Message:
  • Fix old_pwd usage by initializing it systematically , in order to avoid to use a default empty value which doesn't bring the proces in a good directory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3156 r3162  
    18311831    retval=0
    18321832
     1833    old_pwd=`pwd`
    18331834    [ ! -e "$kernelpath" ] && Die "PBDI lilo - cannot find $kernelpath kernel"
    18341835    echo -en "Making "$BOOT_SIZE"KB boot disk..."
     
    19341935
    19351936PrepareBootDiskImage_ISOLINUX() {
    1936     local imagesdir dev imagefile mountpoint fname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size bootimage
     1937    local imagesdir dev imagefile mountpoint fname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size bootimage retval
    19371938    imagesdir=$MINDI_CACHE
    19381939    kernelpath=$1
    19391940    do_boot_root_thingy=""
    1940     local retval old_pwd
    19411941    retval=0
    19421942
     1943    old_pwd=`pwd`
    19431944    [ ! -e "$kernelpath" ] && Die "PBDI isolinux - cannot find $kernelpath kernel"
    19441945    echo -en "Making "$BOOT_SIZE"KB boot disk..."
     
    26642665    cd "$old_pwd"
    26652666    echo -en "..."
    2666     old_pwd=`pwd`
    26672667    if [ "$YOUR_KERNEL_SUCKS" ] ; then
    26682668        cd "$MINDI_TMP"
Note: See TracChangeset for help on using the changeset viewer.