Changeset 938


Ignore:
Timestamp:
Nov 17, 2006, 1:33:24 PM (13 years ago)
Author:
bruno
Message:

Third parameter in mindi custom should overwrite CACHE_LOC in fact

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r935 r938  
    27632763    elif [ "$#" -ge "9" ] && [ "$1" = "--custom" ] ; then
    27642764        MONDOTMP=$2
    2765         BIDON=$3
     2765        CACHE_LOC=$3
     2766        if [ _"$CACHE_LOC" != _"" ]; then
     2767            mkdir -p $CACHE_LOC
     2768        fi
    27662769        kernelpath=$4; [ "$kernelpath" = "(null)" ] && kernelpath=""
    27672770###
     
    28222825        [ "$CDRECOVERY" = "yes" ] && [ "$TAPEDEV" != "" ] && Die "Sorry, you can't use --cd-recovery and --write-tapes at the same time"
    28232826        MONDO_ROOT=`echo $CACHE_LOC | sed 's/\(.*\)\/.*/\1/'`
    2824         [ "$MONDO_ROOT" = "" ] && Die "MONDO_ROOT is undefined"
     2827        if [ _"$MONDO_ROOT" != _"" ]; then
     2828            mkdir -p $MONDO_ROOT
     2829        else
     2830            Die "MONDO_ROOT is undefined"
     2831        fi
    28252832    else
    28262833        echo "Syntax: mindi (--custom ....)" >> /dev/stderr
Note: See TracChangeset for help on using the changeset viewer.