Bash
What can bash do?
%%bash
cal
date
echo "this is what bash can do and so much more"
%%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"