aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsandbox10
1 files changed, 7 insertions, 3 deletions
diff --git a/sandbox b/sandbox
index a868c36..110cb86 100755
--- 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