comparison install.sh @ 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
comparison
equal deleted inserted replaced
48:d3fdb29f3fdc 49:94feb0290715
15 15
16 echo ":: Installing python module C kernel." 16 echo ":: Installing python module C kernel."
17 pip install $repo_name; echo "Done. " 17 pip install $repo_name; echo "Done. "
18 echo ":: Cloning Jupyter C-kernel... " 18 echo ":: Cloning Jupyter C-kernel... "
19 git clone $repository $repo_name; echo "Done. " 19 git clone $repository $repo_name; echo "Done. "
20 cd $repo_name
20 if [ ! -z "$tag_name" ]; then 21 if [ ! -z "$tag_name" ]; then
21 echo ":: Using tag $tag_name" 22 echo ":: Using tag $tag_name"
22 git checkout "$tag_name"; echo "Done." 23 git checkout "$tag_name"; echo "Done."
23 fi 24 fi
24 echo ":: Installing kernel specification" 25 echo ":: Installing kernel specification"
25 cd $repo_name
26 jupyter-kernelspec install c_spec/ ; echo "Done." 26 jupyter-kernelspec install c_spec/ ; echo "Done."
27 echo ":: Removing repository" 27 echo ":: Removing repository"
28 cd .. 28 cd ..
29 rm -rf jupyter-c-kernel/ 29 rm -rf jupyter-c-kernel/
30 echo "Completed! Installation successful. You can type jupyter-notebook and be happy" 30 echo "Completed! Installation successful. You can type jupyter-notebook and be happy"