From e47f0823cb20563b919f342d1e87e27995cfb10c Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Mon, 26 Sep 2022 14:55:45 +0300 Subject: [PATCH] Allow to run install.sh from any current working directory --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index da5542a..a2eda22 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +cd "$(dirname "$0")" + check_exists() { command -v "$1" > /dev/null }