%%bash
    cal

    date
    

    
echo "this is what bash can do and so much more"
    August 2022       
Su Mo Tu We Th Fr Sa  
    1  2  3  4  5  6  
 7  8  9 10 11 12 13  
14 15 16 17 18 19 20  
21 22 23 24 25 26 27  
28 29 30 31           
                      
Sun Aug 28 22:47:14 PDT 2022
this is what bash can do and so much more

Now try to use it for classes outside of APCSP!

By taking files from my computer and exporting it to my github!

%%bash

export school_dir=HOME/que-pro
export project=$school_dir/que-pro
export school_repo="https://gitthub.com/Orlando-C/que-pro"

cd ~

if [ ! -d $school_dir ]
then
    echo "Directory $school_dir does not exist loser, common L. Lemme make it $school_dir"
    mkdir -p school
fi
echo "Directory $school_dir exists." 

if [ ! -d $school ]
then
    echo "Directory $school_dir does not exists... cloning $school_repo"
    cd $school_dir
    git clone $school_repo
    cd ~
fi
echo "Directory $school exists." 

APCSP=HOME/school/AP_Computer_Science_Principles
APWH=HOME/school/AP_World_History
MathInt2B=HOME/school/Integrated_2_B 

cd ~

if [ ! -d $APCSP ]
then
    echo "Directory $APCSP has somehow dissapeared... weird"
    mkdir -p $APCSP
    
fi
echo "Directory $APCSP has been prepared"

if [ ! -d $APWH ]
then
    echo "Directory $APWH has somehow dissapeared... weird"
    
fi
echo "Directory $APWH has been prepared"

if [ ! -d $MathInt2B ]
then
    echo "Directory $MathInt2B has somehow dissapeared... weird"
    
fi
echo "Directory $MathInt2B has been prepared"
Directory HOME/que-pro does not exist loser, common L. Lemme make it HOME/que-pro
Directory HOME/que-pro exists.
Directory  exists.
Directory HOME/school/AP_Computer_Science_Principles has somehow dissapeared... weird
Directory HOME/school/AP_Computer_Science_Principles has been prepared
Directory HOME/school/AP_World_History has somehow dissapeared... weird
Directory HOME/school/AP_World_History has been prepared
Directory HOME/school/Integrated_2_B has somehow dissapeared... weird
Directory HOME/school/Integrated_2_B has been prepared