Changeset 22336 for trunk/scripts/env


Ignore:
Timestamp:
2010-07-21T19:49:52+02:00 (6 years ago)
Author:
nbd
Message:

scripts/env: fix initialization of files/ when creating a new environment (patch from #7603)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/env

    r12925 r22336  
    193193                if ask_bool 1 "Do you want to keep your current config and files?"; then 
    194194                        [ -d "$BASEDIR/files" -a \! -L "$BASEDIR/files" ] && { 
    195                                 mv "$BASEDIR/files/"* "$ENVDIR/" 2>/dev/null 
     195                                mkdir -p "$ENVDIR/files" 
     196                                mv "$BASEDIR/files/*" "$ENVDIR/files/" 2>/dev/null 
    196197                                rmdir "$BASEDIR/files" 
    197198                        } 
Note: See TracChangeset for help on using the changeset viewer.