From 1afa115f75f7b9be815fdd1e7313117b19d0916d Mon Sep 17 00:00:00 2001 From: Shiham Abdul Rahman Date: Tue, 25 Oct 2022 23:19:46 +0500 Subject: [PATCH] run from current dir --- bml-tg-notify.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bml-tg-notify.sh b/bml-tg-notify.sh index 42d933a..51ee975 100755 --- a/bml-tg-notify.sh +++ b/bml-tg-notify.sh @@ -1,4 +1,6 @@ #!/bin/bash +cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 + source .env # import credentials, tg api, cookie path, bml api