echo "Using conditional statement to create a project directory and project"
echo "It is possible to verify tools that are installed by running conditional commands to tell us the version of something."
echo "We can use conda list to verify all the pakcages and versions installed"
echo "A git add command is to add needed files. The git commit command is used to commit to the correct repository. Git push is used to push changes to the repository"
echo "Program a scipt to automate an action"

# Variable section
export project_dir=$HOME/vscode  # change vscode to different name to test git clone
export project=$project_dir/APCSP  # 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 /home/qaisjamili/vscode exists.
Directory /home/qaisjamili/vscode/APCSP exists.