Add scripts and include them in the path

This commit is contained in:
2019-09-16 15:07:01 +02:00
parent b15a573717
commit f1afe46bd9
2 changed files with 23 additions and 0 deletions

17
scripts/.scripts/subject.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/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