diff options
-rwxr-xr-x | runtoday | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/runtoday b/runtoday new file mode 100755 index 0000000..efb3ff8 --- /dev/null +++ b/runtoday @@ -0,0 +1,11 @@ +#!/bin/bash + +day=$(date +%d) + +[ -d day${day} ] || { + echo "Today doesn't exist!" + exit 1 +} + +cd day${day} +javac day${day}.java && java day${day} |