]> gitweb.fluxo.info Git - scripts.git/commitdiff
Fix sandbox script
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 18 Feb 2014 21:08:59 +0000 (18:08 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 18 Feb 2014 21:08:59 +0000 (18:08 -0300)
sandbox

diff --git a/sandbox b/sandbox
index a868c3681021e22d1cbbda4718914b87efa5e7a6..110cb86d85ca95231a9a9852b18f29ec9d3ecac6 100755 (executable)
--- a/sandbox
+++ b/sandbox
@@ -23,9 +23,13 @@ if [ ! -z "$REPO" ]; then
 else
   echo "Initializing $PROJECT..."
   mkdir -p $CODE/$PROJECT
-  touch .gitignore
-  git init
-  git add .
+
+  (
+    cd $CODE/$PROJECT
+    touch .gitignore
+    git init
+    git add .
+  )
 fi
 
 # Vagrant integration