echo "Welcome to my bash page"
Welcome to my bash page
cd
ls
Applications		Library			install.py
Creative Cloud Files	Movies			java
Desktop			Music			opt
Documents		Pictures		spring_portfolio
Downloads		Public			vscode
Experimenting		ijava-1.3.0.zip		ws
IdeaProjects		ijava-1.3.0.zip.1
pwd
/Users/calissa
python --version
java --version
javac --version
Python 3.9.12
openjdk 11.0.16.1 2022-08-12
OpenJDK Runtime Environment Homebrew (build 11.0.16.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.16.1+0, mixed mode)
javac 11.0.16.1
jupyter kernelspec list
Available kernels:
  python3106jvsc74a57bd0b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e    /Users/calissa/.vscode/extensions/ms-toolsai.jupyter-2022.7.1102252217/temp/jupyter/kernels/python3106jvsc74a57bd0b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e
  python3912jvsc74a57bd09961afd50ddbee2a31a7c4a950441f89c9f7e572a5e9be13392b2ff72436ece0    /Users/calissa/.vscode/extensions/ms-toolsai.jupyter-2022.7.1102252217/temp/jupyter/kernels/python3912jvsc74a57bd09961afd50ddbee2a31a7c4a950441f89c9f7e572a5e9be13392b2ff72436ece0
  bash                                                                                      /Users/calissa/Library/Jupyter/kernels/bash
  java                                                                                      /Users/calissa/Library/Jupyter/kernels/java
  javascript                                                                                /Users/calissa/Library/Jupyter/kernels/javascript
  python3                                                                                   /Users/calissa/opt/anaconda3/share/jupyter/kernels/python3
echo "Using conditional statement to create a project directory and project"

# Variable section
export project_dir=$HOME/vscode  # change vscode to different name to test git clone
export project=$project_dir/spring_portfolio  # change APCSP to name of project from git clone
export project_repo="https://github.com/nighthawkcoders/APCSP.git"  # change to project of choice

cd ~    # start in home directory

# Conditional block to make a project directory
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." 

# Conditional block to git clone a project from project_repo
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."
Using conditional statement to create a project directory and project
Directory /Users/calissa/vscode exists.
Directory /Users/calissa/vscode/spring_portfolio exists.