From 65779a77a535e57c1034c04b8de49f1363ac35a2 Mon Sep 17 00:00:00 2001 From: Christoph Keller Date: Tue, 9 Jul 2024 21:09:01 +0200 Subject: [PATCH] Update sentry-admin.sh to select its own working directory (#3184) `sentry-admin.sh` only works when called from the working directory and not using its absolute path. This change makes it also callable using its absolute path. --- sentry-admin.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sentry-admin.sh b/sentry-admin.sh index 85705516d2..d162c82114 100755 --- a/sentry-admin.sh +++ b/sentry-admin.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Set the script directory as working directory. +cd $(dirname $0) + # Detect docker and platform state. source install/dc-detect-version.sh source install/detect-platform.sh