Watch N Learn
About
Watch N Learn is an educational platform for students.
fetch.sh
Copy into a file named ‘fetch.sh’
Execute:
source fetch.sh
Code:
temporary_directory=_$RANDOM$RANDOM
while [ -d $temporary_directory ]
do
temporary_directory=_$RANDOM$RANDOM
done
echo
echo "TASK: 'https://github.com/gmbrianlaw/watch-n-learn/tree/main' -> 'watch-n-learn'"
if [ -d watch-n-learn ]
then
echo
rm -fr watch-n-learn
echo "Removed directory 'watch-n-learn' (recreating)"
fi
mkdir $temporary_directory
echo
curl https://codeload.github.com/gmbrianlaw/watch-n-learn/legacy.zip/main \
--output $temporary_directory/watch-n-learn.zip
ditto -kx $temporary_directory/watch-n-learn.zip $temporary_directory
rm $temporary_directory/watch-n-learn.zip
mv $temporary_directory/* watch-n-learn
rm -r $temporary_directory
echo
echo "TASK (complete): 'https://github.com/gmbrianlaw/watch-n-learn/tree/main' -> 'watch-n-learn'"
unset temporary_directory
echo