aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-18 18:08:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-18 18:08:59 -0300
commit0229353d90dc79bd1fff9eab16e0daee33bf10b3 (patch)
treeb6b757c0da43c7ef849ded8dd79a1e55cbd59843
parent7ce299e0a86c415c2a0ca83ab4b4e18e34c74a22 (diff)
downloadscripts-0229353d90dc79bd1fff9eab16e0daee33bf10b3.tar.gz
scripts-0229353d90dc79bd1fff9eab16e0daee33bf10b3.tar.bz2
Fix sandbox script
-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