Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
WORKING_DIR=work
# step 0 - clean up
if [ -d $WORKING_DIR ]; then
rm -rf $WORKING_DIR
fi
mkdir $WORKING_DIR
# step 1 - download zip
curl -L https://github.com/daytoncleancoders/projects/raw/master/commandline/command-line-kata.zip > $WORKING_DIR/command-line-kata.zip
#step 2 - extract zip
unzip $WORKING_DIR/command-line-kata.zip -d $WORKING_DIR
cd $WORKING_DIR/site
#step 3 - organize!!!!
mkdir css
find . -name *.css | xargs -I file mv file /css
#mv ./base.css css/
mkdir js
find . -name *.js| xargs -I file mv file /js
mkdir img
find . -name *.png | xargs -I file mv file /img
# step 4 - start up
python -m SimpleHTTPServer 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment