Commit 41bea6b46119cf5da45f86d8ffd25a0b0bf44494
1 parent
0ff6a1bf
Relative path for davical.sh
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
davical.sh
1 | #/bin/env bash | 1 | #/bin/env bash |
2 | 2 | ||
3 | -source config.sh | 3 | +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
4 | + | ||
5 | +source $DIR/config.sh | ||
4 | 6 | ||
5 | COOKIES=$(mktemp) | 7 | COOKIES=$(mktemp) |
6 | FILE=$(mktemp) | 8 | FILE=$(mktemp) |
7 | 9 | ||
8 | -./parse.py $EDT -o $FILE | 10 | +$DIR/parse.py $EDT -o $FILE |
9 | 11 | ||
10 | curl --data "username=$USERNAME&password=$PASSWORD" \ | 12 | curl --data "username=$USERNAME&password=$PASSWORD" \ |
11 | --cookie-jar $COOKIES \ | 13 | --cookie-jar $COOKIES \ |