#!/bin/zsh source scripts/common.sh if [ -z "$1" ] || [ -z "$2" ]; then echo "Usage: $0 " exit 1 fi if [ "$1" = "assignment" ]; then DIR=$ASSIGNMENT_DIR elif [ "$1" = "practice" ]; then DIR=$PRACTICES_DIR else echo "Usage: $0 " exit 1 fi cd $DIR mkdir -p $2 cd $2 touch index.html mkdir -p css cd css cp $SHARED_DIR/common.css . echo "@import 'common.css';" >shared.css echo "@import 'shared.css';" >index.css