Skip to content

Commit

Permalink
Merge pull request #1 from dsosby/supportspaces
Browse files Browse the repository at this point in the history
Add quotes around path vars to support spaces
  • Loading branch information
kremso committed Feb 26, 2012
2 parents 83addc1 + 122dde9 commit 87b509a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpew
Expand Up @@ -44,11 +44,11 @@ if [[ ! ( ( -d "$WORKSPACE_DIR" ) && ( -w "$WORKSPACE_DIR" ) ) ]]; then
exit 1
fi

mkdir -p $NEW_WORKSPACE || die Could not create directory $NEW_WORKSPACE
mkdir -p "$NEW_WORKSPACE" || die Could not create directory $NEW_WORKSPACE

mkdir -p $NEW_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/ || die Could not create eclipse settings directory
mkdir -p "$NEW_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/" || die Could not create eclipse settings directory

cp -R $OLD_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/ $NEW_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/ || die Could not copy old settings
cp -R "$OLD_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/" "$NEW_WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/" || die Could not copy old settings

echo New workspace created. Now start your Eclipse and point it to the $NEW_WORKSPACE workspace

0 comments on commit 87b509a

Please sign in to comment.