20 lines
217 B
Bash
Executable File
20 lines
217 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Expected year"
|
|
exit;
|
|
fi
|
|
|
|
if [ -z "$2" ]; then
|
|
echo "Expected day"
|
|
exit;
|
|
fi
|
|
|
|
if [ ${2} -ge 25 ]; then
|
|
echo "Invalid day"
|
|
exit;
|
|
fi
|
|
|
|
cd $1
|
|
|
|
./run_day $2 $1 |