Ticket #7603: env-init-fix.diff

File env-init-fix.diff, 549 bytes (added by jonas@…, 8 years ago)

based on r22140 of the backfire branch

  • scripts/env

     
    192192        if [ -f "$BASEDIR/.config" -o -d "$BASEDIR/files" ]; then 
    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                        } 
    198199                        env_sync