Skip to content

Commit

Permalink
Update sentry-admin.sh to select its own working directory
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
theoriginalgri committed Jul 9, 2024
1 parent da06c0f commit b5e6d5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sentry-admin.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b5e6d5f

Please sign in to comment.