18 lines
274 B
Bash
18 lines
274 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ $# -lt 2 ]; then
|
||
|
echo "Usage: subject.sh <subject name> <subject type>"
|
||
|
fi
|
||
|
|
||
|
name=$1
|
||
|
type=$2
|
||
|
|
||
|
if [ "$type" -eq 0 ]; then
|
||
|
mkdir -p "$name"/Code
|
||
|
mkdir -p "$name"/TP
|
||
|
mkdir -p "$name"/Exos
|
||
|
else
|
||
|
mkdir -p "$name"/TP
|
||
|
mkdir -p "$name"/Exos
|
||
|
fi
|