Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from dsosby/supportspaces

Add quotes around path vars to support spaces
  • Loading branch information...
commit 87b509a5feb5992a4eadc338d92e1b561c5a4d41 2 parents 83addc1 + 122dde9
@kremso authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cpew
View
6 cpew
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.