Tools & Equipment Check
echo "Using conditional statement to create a project directory and project"
export project_dir=$HOME/vscode
export project=$project_dir/manimani
export project_repo="https://github.com/manigggg18/manimani.git"
cd ~
if [ ! -d $project_dir ]
then
echo "Directory $project_dir does not exists... makinng directory $project_dir"
mkdir -p $project_dir
fi
echo "Directory $project_dir exists."
if [ ! -d $project ]
then
echo "Directory $project does not exists... cloning $project_repo"
cd $project_dir
git clone $project_repo
cd ~
fi
echo "Directory $project exists."
echo "Navigate to project, then navigate to area wwhere files were cloned"
cd $project
pwd
echo ""
echo "list top level or root of files with project pulled from github"
ls
echo ""
echo "list again with hidden files pulled from github"
ls -a
echo ""
echo "list all files in long format"
ls -al
echo "Look for posts"
export posts=$project/_posts
cd $posts
pwd
ls -l
echo "Look for notebooks"
export notebooks=$project/_notebooks
cd $notebooks
pwd
ls -l
echo "Look for images in notebooks, print working directory, list files"
cd $notebooks/images
pwd
ls -l
echo "Navigate to project, then navigate to area wwhere files were cloned"
cd $project
echo "show the contents of README.md"
echo ""
cat README.md
echo ""
echo "end of README.md"
echo "Show the shell environment variables, key on left of equal value on right"
echo ""
env
cd $project
echo ""
echo "show the secrets of .git"
cd .git
ls -l
echo ""
echo "look at config file"
cat config
python --version
python2 --version
conda list
echo Conda Check
test="jupyter"
check=`conda list | grep $test`
n=${#check}
if [[ ${n} > 0 ]];
then
echo "$check"
else
echo "$test not found"
fi
jupyter --version
jupyter kernelspec list
test="python3"
check=`jupyter kernelspec list | grep $test`
n=${#check}
if [[ ${n} > 0 ]];
then
echo "$check"
else
echo "$test not found"
fi