From 41bea6b46119cf5da45f86d8ffd25a0b0bf44494 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 21 Nov 2016 06:42:41 +0100 Subject: [PATCH] Relative path for davical.sh --- davical.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/davical.sh b/davical.sh index e6b8450..62dba62 100755 --- a/davical.sh +++ b/davical.sh @@ -1,11 +1,13 @@ #/bin/env bash -source config.sh +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +source $DIR/config.sh COOKIES=$(mktemp) FILE=$(mktemp) -./parse.py $EDT -o $FILE +$DIR/parse.py $EDT -o $FILE curl --data "username=$USERNAME&password=$PASSWORD" \ --cookie-jar $COOKIES \ -- libgit2 0.21.2