Skip to content

Commit 65779a7

Browse files
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.
1 parent e39ac04 commit 65779a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sentry-admin.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Set the script directory as working directory.
4+
cd $(dirname $0)
5+
36
# Detect docker and platform state.
47
source install/dc-detect-version.sh
58
source install/detect-platform.sh

0 commit comments

Comments
 (0)