commit 2f3a271d0d603df0e613715ccbcf9187d13af9ec parent ace403bc0adf326375feb2ac4bad00048911fc88 Author: hhvn <hayden@haydenvh.com> Date: Mon, 1 Mar 2021 01:18:07 +0000 bot: ensure that all files are sourced/executed relative to the executable's location Signed-off-by: mys <> Diffstat:
M | bot | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/bot b/bot @@ -1,5 +1,7 @@ #!/bin/bash +cd $(dirname "$0") + source botenv while true