Skip to content

Commit bbf5acc

Browse files
committed
fix: sentry controlplane auto-instrumentation
1 parent 171a648 commit bbf5acc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

controlplane/docker/patch-sentry.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/bin/sh
2-
set -euo pipefail
2+
set -euo
33

4-
file="$1" || { echo "Usage: $0 <path-to-file>"; exit 1; }
4+
if [ $# -eq 0 ]; then
5+
echo "Usage: $0 <path-to-file>"
6+
exit 1
7+
fi
8+
file="$1"
59

610
# If file already contains Sentry setup, skip patching
711
if grep -q "import './core/sentry.config.js'" "$file"; then

0 commit comments

Comments
 (0)