cd into onos
diff --git a/dist-setup.sh b/dist-setup.sh
index 3481728..5b48410 100644
--- a/dist-setup.sh
+++ b/dist-setup.sh
@@ -48,7 +48,9 @@
 # -------------- Download ONOS ----------------
 
 git clone https://gerrit.onosproject.org/onos
+cd onos
 git checkout 1.0.0
+cd -
 
 echo ". ~/onos/tools/dev/bash_profile" >> ~/.bashrc
 echo "export ONOS_USER=root" >> ~/.bashrc