Skip to content

Commit

Permalink
path expansion was broken due to a badly quoted *
Browse files Browse the repository at this point in the history
Signed-of-by: Benjamin Cama <[email protected]>

SVN-Revision: 26391
  • Loading branch information
John Crispin committed Apr 1, 2011
1 parent 9fd342d commit e42e2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/env
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ env_clear() {
env_sync_data
if ask_bool 1 "Do you want to keep your current config and files"; then
mkdir -p "$BASEDIR/files"
cp -a "$ENVDIR/files/*" "$BASEDIR/files" 2>/dev/null >/dev/null
cp -a "$ENVDIR/files/"* "$BASEDIR/files" 2>/dev/null >/dev/null
cp "$ENVDIR/.config" "$BASEDIR/"
else
rm -rf "$BASEDIR/files" "$BASEDIR/.config"
Expand Down Expand Up @@ -193,7 +193,7 @@ env_new() {
if ask_bool 1 "Do you want to keep your current config and files?"; then
[ -d "$BASEDIR/files" -a \! -L "$BASEDIR/files" ] && {
mkdir -p "$ENVDIR/files"
mv "$BASEDIR/files/*" "$ENVDIR/files/" 2>/dev/null
mv "$BASEDIR/files/"* "$ENVDIR/files/" 2>/dev/null
rmdir "$BASEDIR/files"
}
env_sync
Expand Down

0 comments on commit e42e2b3

Please sign in to comment.