Remove redundant else clause from subject script
This commit is contained in:
parent
8ce73375bc
commit
c3c7560cce
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: subject <subject name> <subject type>"
|
||||
echo "subject type 0: programming"
|
||||
|
@ -10,11 +11,10 @@ fi
|
|||
name=$1
|
||||
type=$2
|
||||
|
||||
mkdir -p "$name"/Labs
|
||||
mkdir -p "$name"/Exercises
|
||||
touch "$name"/.project
|
||||
|
||||
if [ "$type" -eq 0 ]; then
|
||||
mkdir -p "$name"/Code
|
||||
mkdir -p "$name"/Labs
|
||||
mkdir -p "$name"/Exercises
|
||||
else
|
||||
mkdir -p "$name"/Labs
|
||||
mkdir -p "$name"/Exercises
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue