summaryrefslogtreecommitdiff
path: root/runtoday
blob: efb3ff873f848ad5817d8dd227c50af50b177cbd (plain)
1
2
3
4
5
6
7
8
9
10
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}