changeset 49:94feb0290715

Move cd before checkout since we need to be in the repo.
author Eric Perry <eric@ericjperry.com>
date Wed, 18 Jan 2017 11:27:00 -0500
parents d3fdb29f3fdc
children 161ad9354cbd
files install.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/install.sh	Wed Jan 18 11:18:51 2017 -0500
+++ b/install.sh	Wed Jan 18 11:27:00 2017 -0500
@@ -17,12 +17,12 @@
 pip install $repo_name; echo "Done. "
 echo ":: Cloning Jupyter C-kernel... "
 git clone $repository $repo_name; echo "Done. "
+cd $repo_name
 if [ ! -z "$tag_name" ]; then
     echo ":: Using tag $tag_name"
     git checkout "$tag_name"; echo "Done."
 fi
 echo ":: Installing kernel specification"
-cd $repo_name
 jupyter-kernelspec install c_spec/ ; echo "Done."
 echo ":: Removing repository"
 cd ..