Changeset 26391


Ignore:
Timestamp:
2011-04-01T13:07:27+02:00 (7 years ago)
Author:
blogic
Message:

[scripts/env]

path expansion was broken due to a badly quoted *

Signed-of-by: Benjamin Cama <benoar@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/env

    r22336 r26391  
    139139        if ask_bool 1 "Do you want to keep your current config and files"; then 
    140140                mkdir -p "$BASEDIR/files" 
    141                 cp -a "$ENVDIR/files/*" "$BASEDIR/files" 2>/dev/null >/dev/null 
     141                cp -a "$ENVDIR/files/"* "$BASEDIR/files" 2>/dev/null >/dev/null 
    142142                cp "$ENVDIR/.config" "$BASEDIR/" 
    143143        else 
     
    194194                        [ -d "$BASEDIR/files" -a \! -L "$BASEDIR/files" ] && { 
    195195                                mkdir -p "$ENVDIR/files" 
    196                                 mv "$BASEDIR/files/*" "$ENVDIR/files/" 2>/dev/null 
     196                                mv "$BASEDIR/files/"* "$ENVDIR/files/" 2>/dev/null 
    197197                                rmdir "$BASEDIR/files" 
    198198                        } 
Note: See TracChangeset for help on using the changeset viewer.