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.
This commit is contained in:
Christoph Keller 2024-07-09 21:09:01 +02:00 committed by GitHub
parent e39ac04ccc
commit 65779a77a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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